提交 507fcd3d 编写于 作者: G Guennadi Liakhovetski 提交者: Mauro Carvalho Chehab

[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: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 1bfa6e0d
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册