Commit 6edc119e authored by Bruno Herrera's avatar Bruno Herrera Committed by Kalle Valo

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: default avatarBruno Herrera <bruherrera@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 2b9c9f52
...@@ -241,7 +241,6 @@ static int wlcore_probe_of(struct device *dev, int *irq, ...@@ -241,7 +241,6 @@ static int wlcore_probe_of(struct device *dev, int *irq,
*irq = irq_of_parse_and_map(np, 0); *irq = irq_of_parse_and_map(np, 0);
if (!*irq) { if (!*irq) {
dev_err(dev, "No irq in platform data\n"); dev_err(dev, "No irq in platform data\n");
kfree(pdev_data);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment