mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
media: imagination: fix a potential memory leak in e5010_probe()
commit609ba05b94upstream. Add video_device_release() to release the memory allocated by video_device_alloc() if something goes wrong. Fixes:a1e2940458("media: imagination: Add E5010 JPEG Encoder driver") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1f78790d98
commit
2a2bd7df40
1 changed files with 7 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue