Skip to content

Commit

Permalink
wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bruno Herrera authored and Kalle Valo committed Jun 29, 2016
1 parent 2b9c9f5 commit 6edc119
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/wireless/ti/wlcore/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6edc119

Please sign in to comment.