mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 04:17:47 +00:00
[media] imx074: fix error handling for failed async subdevice registration
If v4l2_async_register_subdev() fails, don't skip the clean up. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
1bfa6e0d1f
commit
507fcd3da2
@ -451,7 +451,9 @@ static int imx074_probe(struct i2c_client *client,
|
||||
if (ret < 0)
|
||||
goto eprobe;
|
||||
|
||||
return v4l2_async_register_subdev(&priv->subdev);
|
||||
ret = v4l2_async_register_subdev(&priv->subdev);
|
||||
if (!ret)
|
||||
return 0;
|
||||
|
||||
epwrinit:
|
||||
eprobe:
|
||||
|
Loading…
Reference in New Issue
Block a user