wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq
Subsystems (3)
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.
Signed-off-by Bruno Herrera <[email protected]>
--- drivers/net/wireless/ti/wlcore/sdio.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/ti/wlcore/sdio.c +0 -1
@@ -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)
Quoted 3 lines · Bruno Herrera
pdev_datapointer is being freed with kfree but the pointer is not dynamic allocated.Signed-off-by Bruno Herrera <[email protected]>
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