mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
media: max9286: Free control handler
[ Upstream commitbfce6a12e5] The control handler is leaked in some probe-time error paths, as well as in the remove path. Fix it. Fixes:66d8c9d242("media: i2c: Add MAX9286 driver") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3d7003c400
commit
1ad4b8c455
@@ -937,6 +937,7 @@ err_async:
|
||||
static void max9286_v4l2_unregister(struct max9286_priv *priv)
|
||||
{
|
||||
fwnode_handle_put(priv->sd.fwnode);
|
||||
v4l2_ctrl_handler_free(&priv->ctrls);
|
||||
v4l2_async_unregister_subdev(&priv->sd);
|
||||
max9286_v4l2_notifier_unregister(priv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user