summaryrefslogtreecommitdiff
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2013-06-10 20:32:29 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-21 14:29:24 (GMT)
commit090c65b694c362adb19ec9c27de216a808ee443c (patch)
tree2c37b858da95626a410a738f68c0926d40ef42cb /drivers/media/radio
parentb610b5928dc04095b9b24b83e4ddbb399d933611 (diff)
downloadlinux-fsl-qoriq-090c65b694c362adb19ec9c27de216a808ee443c.tar.xz
[media] usbvision-video: fix memory leak of alt_max_pkt_size
1. usbvision->alt_max_pkt_size is not deallocated anywhere. 2. if allocation of usbvision->alt_max_pkt_size fails, there is no proper deallocation of already acquired resources. The patch adds kfree(usbvision->alt_max_pkt_size) to usbvision_release() as soon as other deallocations happen there. It calls usbvision_release() if allocation of usbvision->alt_max_pkt_size fails as soon as usbvision_release() is safe to work with incompletely initialized usbvision structure. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio')
0 files changed, 0 insertions, 0 deletions