mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
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 <bruherrera@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
2b9c9f52dc
commit
6edc119ed3
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue