提交 6edc119e 编写于 作者: B Bruno Herrera 提交者: Kalle Valo

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: NBruno Herrera <bruherrera@gmail.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 2b9c9f52
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册