Commit 57a2a093 authored by Fariya Fatima's avatar Fariya Fatima Committed by John W. Linville
Browse files

rsi: Fixed issue relating to variable de-referenced before check 'adapter'


Signed-off-by: default avatarFariya Fatima <fariyaf@gmail.com>
Signed-off-by: John W. Linville's avatarJohn W. Linville <linville@tuxdriver.com>
parent bff37af7
......@@ -756,12 +756,13 @@ static int rsi_probe(struct sdio_func *pfunction,
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment