浏览代码

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>
Bruno Herrera 9 年之前
父节点
当前提交
6edc119ed3
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/net/wireless/ti/wlcore/sdio.c

+ 0 - 1
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);
 	*irq = irq_of_parse_and_map(np, 0);
 	if (!*irq) {
 	if (!*irq) {
 		dev_err(dev, "No irq in platform data\n");
 		dev_err(dev, "No irq in platform data\n");
-		kfree(pdev_data);
 		return -EINVAL;
 		return -EINVAL;
 	}
 	}