On 08/08/2012 11:17 AM, Peter Meerwald wrote:
>> Do not leak memory by updating pointer with potentially
>> NULL realloc return value.
> I agree
>
> use of krealloc() was suggested in driver review (see
> http://www.spinics.net/lists/linux-iio/msg05930.html) to shorten the code;
> unfortunately,
On 08/08/2012 09:17 AM, Peter Meerwald wrote:
>
>> Do not leak memory by updating pointer with potentially
>> NULL realloc return value.
>
> I agree
>
> use of krealloc() was suggested in driver review (see
> http://www.spinics.net/lists/linux-iio/msg05930.html) to shorten the code;
> unfortun
> Do not leak memory by updating pointer with potentially
> NULL realloc return value.
I agree
use of krealloc() was suggested in driver review (see
http://www.spinics.net/lists/linux-iio/msg05930.html) to shorten the code;
unfortunately, I misunderstood the semantics of krealloc() in case
al
Do not leak memory by updating pointer with potentially
NULL realloc return value.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov
---
drivers/iio/light/adjd_s311.c | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --g
4 matches
Mail list logo