提交 20319415 编写于 作者: S Sachin Kamat 提交者: Mauro Carvalho Chehab

[media] exynos4-is: Fix potential null pointer dereference in mipi-csis.c

When 'node' is NULL, the print statement tries to dereference it.
Hence replace the variable with the one that is accessible.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 a2ac2d79
...@@ -746,7 +746,7 @@ static int s5pcsis_parse_dt(struct platform_device *pdev, ...@@ -746,7 +746,7 @@ static int s5pcsis_parse_dt(struct platform_device *pdev,
node = v4l2_of_get_next_endpoint(node, NULL); node = v4l2_of_get_next_endpoint(node, NULL);
if (!node) { if (!node) {
dev_err(&pdev->dev, "No port node at %s\n", dev_err(&pdev->dev, "No port node at %s\n",
node->full_name); pdev->dev.of_node->full_name);
return -EINVAL; return -EINVAL;
} }
/* Get port node and validate MIPI-CSI channel id. */ /* Get port node and validate MIPI-CSI channel id. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册