From: Christophe JAILLET Date: Sun, 17 Sep 2023 13:47:16 +0000 (+0200) Subject: media: pxa_camera: Fix an error handling path in pxa_camera_probe() X-Git-Tag: v6.6.17~3790^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=760d03f90bf35a0724acd71a60c1ad753fdaa53e;p=platform%2Fkernel%2Flinux-rpi.git media: pxa_camera: Fix an error handling path in pxa_camera_probe() The commit in Fixes has reordered the code and the error handling path. However one 'goto' was missed. Fix it and branch at the correct place in the error handling path. Fixes: 5073d10cbaba ("media: pxa_camera: Register V4L2 device early") Signed-off-by: Christophe JAILLET Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/platform/intel/pxa_camera.c b/drivers/media/platform/intel/pxa_camera.c index 6e6caf5..59b89e4 100644 --- a/drivers/media/platform/intel/pxa_camera.c +++ b/drivers/media/platform/intel/pxa_camera.c @@ -2398,7 +2398,7 @@ static int pxa_camera_probe(struct platform_device *pdev) PXA_CAM_DRV_NAME, pcdev); if (err) { dev_err(&pdev->dev, "Camera interrupt register failed\n"); - goto exit_v4l2_device_unregister; + goto exit_deactivate; } pcdev->notifier.ops = &pxa_camera_sensor_ops;