summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat2013-04-26 09:52:57 +0200
committerMauro Carvalho Chehab2013-05-21 13:33:52 +0200
commit2031941502339d548cd51bf34e6ebb8bc3bb2d89 (patch)
treed1590dd5926a15c89d35491ef0fa6b9afe4df959
parent[media] vpfe-capture.c: remove unused label probe_free_lock (diff)
downloadkernel-qcow2-linux-2031941502339d548cd51bf34e6ebb8bc3bb2d89.tar.gz
kernel-qcow2-linux-2031941502339d548cd51bf34e6ebb8bc3bb2d89.tar.xz
kernel-qcow2-linux-2031941502339d548cd51bf34e6ebb8bc3bb2d89.zip
[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: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/platform/exynos4-is/mipi-csis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos4-is/mipi-csis.c b/drivers/media/platform/exynos4-is/mipi-csis.c
index a2eda9d5ac87..254d70fe762a 100644
--- a/drivers/media/platform/exynos4-is/mipi-csis.c
+++ b/drivers/media/platform/exynos4-is/mipi-csis.c
@@ -746,7 +746,7 @@ static int s5pcsis_parse_dt(struct platform_device *pdev,
node = v4l2_of_get_next_endpoint(node, NULL);
if (!node) {
dev_err(&pdev->dev, "No port node at %s\n",
- node->full_name);
+ pdev->dev.of_node->full_name);
return -EINVAL;
}
/* Get port node and validate MIPI-CSI channel id. */