mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 03:11:59 +00:00
rsi: Fixed issue relating to variable de-referenced before check 'adapter'
Signed-off-by: Fariya Fatima <fariyaf@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
bff37af7f2
commit
57a2a093b4
1 changed files with 3 additions and 2 deletions
|
@ -756,12 +756,13 @@ fail:
|
||||||
static void rsi_disconnect(struct sdio_func *pfunction)
|
static void rsi_disconnect(struct sdio_func *pfunction)
|
||||||
{
|
{
|
||||||
struct rsi_hw *adapter = sdio_get_drvdata(pfunction);
|
struct rsi_hw *adapter = sdio_get_drvdata(pfunction);
|
||||||
struct rsi_91x_sdiodev *dev =
|
struct rsi_91x_sdiodev *dev;
|
||||||
(struct rsi_91x_sdiodev *)adapter->rsi_dev;
|
|
||||||
|
|
||||||
if (!adapter)
|
if (!adapter)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
dev = (struct rsi_91x_sdiodev *)adapter->rsi_dev;
|
||||||
|
|
||||||
dev->write_fail = 2;
|
dev->write_fail = 2;
|
||||||
rsi_mac80211_detach(adapter);
|
rsi_mac80211_detach(adapter);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue