Commit 609ba05b authored by Haoxiang Li's avatar Haoxiang Li Committed by Hans Verkuil
Browse files

media: imagination: fix a potential memory leak in e5010_probe()



Add video_device_release() to release the memory allocated by
video_device_alloc() if something goes wrong.

Fixes: a1e29404 ("media: imagination: Add E5010 JPEG Encoder driver")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHaoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: default avatarNicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: default avatarNicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
parent 208699af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment