Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Christophe JAILLET and committed by
Hans Verkuil
760d03f9 263cb0cc

+1 -1
+1 -1
drivers/media/platform/intel/pxa_camera.c
··· 2398 2398 PXA_CAM_DRV_NAME, pcdev); 2399 2399 if (err) { 2400 2400 dev_err(&pdev->dev, "Camera interrupt register failed\n"); 2401 - goto exit_v4l2_device_unregister; 2401 + goto exit_deactivate; 2402 2402 } 2403 2403 2404 2404 pcdev->notifier.ops = &pxa_camera_sensor_ops;