diff options
author | Wei Chen <harperchen1110@gmail.com> | 2023-03-27 13:58:09 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-04-11 18:54:00 +0200 |
commit | 2649c1a20e8e399ee955d0e22192f9992662c3d2 (patch) | |
tree | 97ee44d65915144c4c5e84520ff1781e0c3f0c0b /LICENSES | |
parent | media: ov8856: Do not check for for module version (diff) | |
download | linux-2649c1a20e8e399ee955d0e22192f9992662c3d2.tar.xz linux-2649c1a20e8e399ee955d0e22192f9992662c3d2.zip |
media: hi846: Fix memleak in hi846_init_controls()
hi846_init_controls doesn't clean the allocated ctrl_hdlr
in case there is a failure, which causes memleak. Add
v4l2_ctrl_handler_free to free the resource properly.
Fixes: e8c0882685f9 ("media: i2c: add driver for the SK Hynix Hi-846 8M pixel camera")
Signed-off-by: Wei Chen <harperchen1110@gmail.com>
Reviewed-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions