mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
1c795ebd00
Do not leak memory by updating pointer with potentially NULL realloc return value. There is no need to preserve data in the buffer, so replace krealloc() by kfree()-kmalloc() pair. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Acked-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org> |
||
---|---|---|
.. | ||
adjd_s311.c | ||
Kconfig | ||
lm3533-als.c | ||
Makefile | ||
vcnl4000.c |