Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1418967
| From | Bruno Herrera <bruherrera@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq |
| Date | 2016-06-10 02:50 +0200 |
| Message-ID | <rIiO6-5IZ-11@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
pdev_data pointer is being freed with kfree but the pointer is not dynamic allocated.
Signed-off-by: Bruno Herrera <bruherrera@gmail.com>
---
drivers/net/wireless/ti/wlcore/sdio.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c
index c172da5..5839acb 100644
--- 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;
}
--
2.7.4 (Apple Git-66)
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq Bruno Herrera <bruherrera@gmail.com> - 2016-06-10 02:50 +0200
csiph-web