提交 1199fa8c 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

media: tegra-cec: fix cec_notifier_parse_hdmi_phandle return check

cec_notifier_parse_hdmi_phandle returns an error pointer, not a NULL
pointer on error.

Fixes: 4d34c926: ("media: tegra_cec: use new cec_notifier_parse_hdmi_phandle helper")
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 b72845ee
......@@ -334,8 +334,8 @@ static int tegra_cec_probe(struct platform_device *pdev)
hdmi_dev = cec_notifier_parse_hdmi_phandle(&pdev->dev);
if (!hdmi_dev)
return -ENODEV;
if (IS_ERR(hdmi_dev))
return PTR_ERR(hdmi_dev);
cec = devm_kzalloc(&pdev->dev, sizeof(struct tegra_cec), GFP_KERNEL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册