Skip to contentSkip to conversation

wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq

PATCH In review Bruno Herrera 2 participants 2 messages Jun 10, 2016 – Jun 29, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/wireless/ti/wlcore/sdio.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/ti/wlcore/sdio.c +0 -1
index c172da5..5839acb 100644
@@ -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;
 	}
 
Signature · 1 line
2.7.4 (Apple Git-66)
#1 lore raw
Quoted 3 lines · Bruno Herrera

pdev_data pointer is being freed with kfree but the pointer is not dynamic allocated.

Thanks, 1 patch applied to wireless-drivers-next.git:

6edc119ed3b5 wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq

Signature · 7 lines
Sent by pwcli
https://patchwork.kernel.org/patch/9168709/

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html