projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff37af
)
rsi: Fixed issue relating to variable de-referenced before check 'adapter'
author
Fariya Fatima
<fariyaf@gmail.com>
Wed, 2 Apr 2014 03:59:52 +0000
(09:29 +0530)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 9 Apr 2014 17:55:53 +0000
(13:55 -0400)
Signed-off-by: Fariya Fatima <fariyaf@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rsi/rsi_91x_sdio.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rsi/rsi_91x_sdio.c
b/drivers/net/wireless/rsi/rsi_91x_sdio.c
index 852453f386e2e73175281e3739dedc747f412e2e..2e39d38d6a9ee80d28c56283541ca625992aeacc 100644
(file)
--- a/
drivers/net/wireless/rsi/rsi_91x_sdio.c
+++ b/
drivers/net/wireless/rsi/rsi_91x_sdio.c
@@
-756,12
+756,13
@@
fail:
static void rsi_disconnect(struct sdio_func *pfunction)
{
struct rsi_hw *adapter = sdio_get_drvdata(pfunction);
- struct rsi_91x_sdiodev *dev =
- (struct rsi_91x_sdiodev *)adapter->rsi_dev;
+ struct rsi_91x_sdiodev *dev;
if (!adapter)
return;
+ dev = (struct rsi_91x_sdiodev *)adapter->rsi_dev;
+
dev->write_fail = 2;
rsi_mac80211_detach(adapter);