From: Alexey Khoroshilov Date: Sat, 4 Apr 2015 00:16:01 +0000 (-0300) Subject: [media] marvell-ccic: fix memory leak on failure path in cafe_smbus_setup() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~419 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90ca75fd1945d9e51e21cbde0aae1aad68730dc5;p=pandora-kernel.git [media] marvell-ccic: fix memory leak on failure path in cafe_smbus_setup() If i2c_add_adapter() fails, adap is not deallocated. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Acked-by: Jonathan Corbet Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed