Re: [PATCH v2] clk: s2mps11: Fix double free corruption during driver unbind

2014-07-01 Thread Mike Turquette
Quoting Krzysztof Kozlowski (2014-06-27 05:21:10) > After unbinding the driver memory was corrupted by double free of > clk_lookup structure. This lead to OOPS when re-binding the driver > again. > > The driver allocated memory for 'clk_lookup' with devm_kzalloc. During > driver removal this memor

Re: [PATCH v2] clk: s2mps11: Fix double free corruption during driver unbind

2014-06-29 Thread Yadwinder Singh Brar
On Fri, Jun 27, 2014 at 5:51 PM, Krzysztof Kozlowski wrote: > After unbinding the driver memory was corrupted by double free of > clk_lookup structure. This lead to OOPS when re-binding the driver > again. > > The driver allocated memory for 'clk_lookup' with devm_kzalloc. During > driver removal

[PATCH v2] clk: s2mps11: Fix double free corruption during driver unbind

2014-06-27 Thread Krzysztof Kozlowski
After unbinding the driver memory was corrupted by double free of clk_lookup structure. This lead to OOPS when re-binding the driver again. The driver allocated memory for 'clk_lookup' with devm_kzalloc. During driver removal this memory was freed twice: once by clkdev_drop() and second by devm co