[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <57b20b92720091f1cdb63f08714ef94a41aee885.1509171955.git.arvind.yadav.cs@gmail.com>
Date: Sat, 28 Oct 2017 12:03:46 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: gregkh@...uxfoundation.org, robsonde@...il.com, tvboxspy@...il.com,
mayhs11saini@...il.com
Cc: linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org
Subject: [PATCH] staging: rtl8192e: set priv->irq as 0 after the irq is freed
_rtl92e_init can fail here, we must set priv->irq as 0 after free_irq.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
index aca5265..1ea1142 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
@@ -1095,6 +1095,7 @@ static short _rtl92e_init(struct net_device *dev)
if (_rtl92e_pci_initdescring(dev) != 0) {
netdev_err(dev, "Endopoints initialization failed");
free_irq(dev->irq, dev);
+ priv->irq = 0;
return -1;
}
--
2.7.4
Powered by blists - more mailing lists