summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-04-16 03:02:19 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-25 09:32:57 -0300
commit38c602b8ed4ddb73c9274df1af33a6f6f7db26e1 (patch)
tree81c7d81bd11cba3346ab041778af57c628d4317b /drivers/media/platform
parent5f3f254f7c138a22a544b80ce2c14a3fc4ed711e (diff)
[media] exynos4-is: Fix potential null pointer dereferencing
If fimc->drv_data is NULL, then fimc->drv_data->num_entities would cause NULL pointer dereferencing. Hence remove it from print statement. 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>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/exynos4-is/fimc-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-core.c b/drivers/media/platform/exynos4-is/fimc-core.c
index f25807d7bc8..a8eaad0fc61 100644
--- a/drivers/media/platform/exynos4-is/fimc-core.c
+++ b/drivers/media/platform/exynos4-is/fimc-core.c
@@ -955,8 +955,8 @@ static int fimc_probe(struct platform_device *pdev)
}
if (!fimc->drv_data || fimc->id >= fimc->drv_data->num_entities ||
fimc->id < 0) {
- dev_err(dev, "Invalid driver data or device id (%d/%d)\n",
- fimc->id, fimc->drv_data->num_entities);
+ dev_err(dev, "Invalid driver data or device id (%d)\n",
+ fimc->id);
return -EINVAL;
}
if (!dev->of_node)