summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/adv7180.c
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2019-10-09 12:01:47 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-24 18:31:51 -0300
commit2289adbfa559050d2a38bcd9caac1c18b800e928 (patch)
treecefd0e1f1c272b96b60e7487b174d88893ab3d12 /drivers/media/i2c/adv7180.c
parent69e3235d58260d3d03570271da314829f9486237 (diff)
media: usb: fix memory leak in af9005_identify_state
In af9005_identify_state when returning -EIO the allocated buffer should be released. Replace the "return -EIO" with assignment into ret and move deb_info() under a check. Fixes: af4e067e1dcf ("V4L/DVB (5625): Add support for the AF9005 demodulator from Afatech") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/adv7180.c')
0 files changed, 0 insertions, 0 deletions