[v2,media] exynos4-is: Fix potential null pointer dereference in mipi-csis.c
Commit Message
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>
---
Changes since v1:
Used pdev->dev.of_node->full_name for node name.
---
drivers/media/platform/exynos4-is/mipi-csis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 04/26/2013 10:52 AM, Sachin Kamat wrote:
> 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>
> ---
> Changes since v1:
> Used pdev->dev.of_node->full_name for node name.
Patch applied for 3.10-rc2+, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
@@ -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. */