wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq
authorBruno Herrera <bruherrera@gmail.com>
Fri, 10 Jun 2016 00:46:46 +0000 (21:46 -0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 29 Jun 2016 15:45:19 +0000 (18:45 +0300)
pdev_data pointer is being freed with kfree but the pointer is not dynamic allocated.

Signed-off-by: Bruno Herrera <bruherrera@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/sdio.c

index c172da56b550b8a59f88f5206a0160c1a878f5bb..5839acbbc782318ec85d1b3cfadcdd688c32cf7d 100644 (file)
@@ -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;
        }