From: Bruno Herrera Date: Fri, 10 Jun 2016 00:46:46 +0000 (-0300) Subject: wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6edc119ed3b5e860535d49852f8cc8e5be95538d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq pdev_data pointer is being freed with kfree but the pointer is not dynamic allocated. Signed-off-by: Bruno Herrera Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c index c172da56b550..5839acbbc782 100644 --- a/drivers/net/wireless/ti/wlcore/sdio.c +++ b/drivers/net/wireless/ti/wlcore/sdio.c @@ -241,7 +241,6 @@ static int wlcore_probe_of(struct device *dev, int *irq, *irq = irq_of_parse_and_map(np, 0); if (!*irq) { dev_err(dev, "No irq in platform data\n"); - kfree(pdev_data); return -EINVAL; }