diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-10-09 12:01:47 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-09 10:17:58 +0100 |
commit | 2d7c27957cac081eeacea7c38d8c9c59049883dc (patch) | |
tree | 91a3992a7c381186c569e6d56aa5875b24a3c91c /fs/ceph | |
parent | 0902316524bf0d0e6de17263f9e02a3dd4e1d0ae (diff) | |
download | linux-stable-2d7c27957cac081eeacea7c38d8c9c59049883dc.tar.gz linux-stable-2d7c27957cac081eeacea7c38d8c9c59049883dc.tar.bz2 linux-stable-2d7c27957cac081eeacea7c38d8c9c59049883dc.zip |
media: usb: fix memory leak in af9005_identify_state
commit 2289adbfa559050d2a38bcd9caac1c18b800e928 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ceph')
0 files changed, 0 insertions, 0 deletions