Input: sur40 - Fix an error code in sur40_probe()
Subsystems (3)
PATCH 1/1 Input: sur40 - Fix an error code in sur40_probe()
If v4l2_ctrl_handler_setup() fails then probe() should return an error code instead of returning success.
Fixes cee1e3e2ef39 ("media: add video control handlers using V4L2 control framework")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/input/touchscreen/sur40.c | 1 + 1 file changed, 1 insertion(+)
drivers/input/touchscreen/sur40.c +1 -0
@@ -787,6 +787,7 @@ static int sur40_probe(struct usb_interface *interface,dev_err (&interface->dev,"Unable to register video controls." );v4l2_ctrl_handler_free (&sur40->hdl); + error = sur40->hdl.error; goto err_unreg_v4l2; }
Signature · 1 line
2.29.2
Quoted 5 lines · Dan Carpenter
If
v4l2_ctrl_handler_setup()fails thenprobe()should return an error code instead of returning success.Fixes cee1e3e2ef39 ("media: add video control handlers using V4L2 control framework")Signed-off-by Dan Carpenter <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry