Re: [PATCH] [media] marvell-ccic: fix memory leak on failure path in cafe_smbus_setup()

2015-04-04 Thread Jonathan Corbet
On Sat, 4 Apr 2015 03:16:01 +0300 Alexey Khoroshilov khoroshi...@ispras.ru wrote: If i2c_add_adapter() fails, adap is not deallocated. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru Actually, the worse thing is that

Re: [PATCH] [media] marvell-ccic: fix memory leak on failure path in cafe_smbus_setup()

2015-04-04 Thread Alexey Khoroshilov
On 04.04.2015 16:36, Jonathan Corbet wrote: On Sat, 4 Apr 2015 03:16:01 +0300 Alexey Khoroshilov khoroshi...@ispras.ru wrote: If i2c_add_adapter() fails, adap is not deallocated. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov

[PATCH] [media] marvell-ccic: fix memory leak on failure path in cafe_smbus_setup()

2015-04-03 Thread Alexey Khoroshilov
If i2c_add_adapter() fails, adap is not deallocated. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru --- drivers/media/platform/marvell-ccic/cafe-driver.c | 12 1 file changed, 8 insertions(+), 4 deletions(-)