From 8b376fe0965b7f30b72bfa4bfd6bfd1484b1789d Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Fri, 1 Sep 2017 12:56:39 +0100 Subject: [PATCH] extcon: madera: Avoid uninitialized pointer dereference Change-Id: I923132946888d538af4ca0594ab9d1b01368165d Signed-off-by: Stuart Henderson --- drivers/extcon/extcon-madera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-madera.c b/drivers/extcon/extcon-madera.c index e96dc35a1b43..f85370d215cb 100644 --- a/drivers/extcon/extcon-madera.c +++ b/drivers/extcon/extcon-madera.c @@ -2863,7 +2863,7 @@ static int madera_extcon_probe(struct platform_device *pdev) /* quick exit if Madera irqchip driver hasn't completed probe */ if (!madera->irq_dev) { - dev_dbg(info->dev, "irqchip driver not ready\n"); + dev_dbg(&pdev->dev, "irqchip driver not ready\n"); return -EPROBE_DEFER; } -- 2.20.1