Alexey Khoroshilov 90ca75fd19 [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 <khoroshilov@ispras.ru>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-05-01 07:50:54 -03:00
..
2015-04-10 10:12:31 -03:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2015-04-01 06:56:55 -03:00
2015-05-01 06:56:35 -03:00