projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b9c9f5
)
wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq
author
Bruno Herrera
<bruherrera@gmail.com>
Fri, 10 Jun 2016 00:46:46 +0000
(21:46 -0300)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 29 Jun 2016 15:45:19 +0000
(18:45 +0300)
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>
drivers/net/wireless/ti/wlcore/sdio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/ti/wlcore/sdio.c
b/drivers/net/wireless/ti/wlcore/sdio.c
index c172da56b550b8a59f88f5206a0160c1a878f5bb..5839acbbc782318ec85d1b3cfadcdd688c32cf7d 100644
(file)
--- a/
drivers/net/wireless/ti/wlcore/sdio.c
+++ b/
drivers/net/wireless/ti/wlcore/sdio.c
@@
-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;
}