提交 79373070 编写于 作者: N Naushir Patuck 提交者: Zheng Zengkai

media: bcm2835-unicam: Correctly handle error propagation for stream on

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

On a failure in start_streaming(), the error code would not propagate to
the calling function on all conditions. This would cause the userland
caller to not know of the failure.
Signed-off-by: NNaushir Patuck <naush@raspberrypi.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 fab95979
......@@ -1730,8 +1730,7 @@ static int unicam_start_streaming(struct vb2_queue *vq, unsigned int count)
unicam_disable(dev);
clk_disable_unprepare(dev->clock);
err_vpu_clock:
ret = clk_set_min_rate(dev->vpu_clock, 0);
if (ret)
if (clk_set_min_rate(dev->vpu_clock, 0))
unicam_err(dev, "failed to reset the VPU clock\n");
clk_disable_unprepare(dev->vpu_clock);
err_pm_put:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册