Skip to content

Commit a3ad38e

Browse files
armadefuego@gmail.comlinvjw
authored andcommitted
orinoco: Clear dangling pointer on hardware busy
On hardware busy the scan request pointer should be cleared, as higher levels will release. This avoids a crash when that pointer is erroneously used later. Signed-off-by: Joseph J. Gunn <armadefuego@yahoo.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent be36cac commit a3ad38e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • drivers/net/wireless/orinoco

‎drivers/net/wireless/orinoco/cfg.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ static int orinoco_scan(struct wiphy *wiphy, struct net_device *dev,
153153
priv->scan_request = request;
154154

155155
err = orinoco_hw_trigger_scan(priv, request->ssids);
156+
/* On error the we aren't processing the request */
157+
if (err)
158+
priv->scan_request = NULL;
156159

157160
return err;
158161
}

0 commit comments

Comments
 (0)