Skip to content

Commit

Permalink
orinoco: Clear dangling pointer on hardware busy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
armadefuego@gmail.com authored and John W. Linville committed Mar 23, 2011
1 parent be36cac commit a3ad38e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/orinoco/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ static int orinoco_scan(struct wiphy *wiphy, struct net_device *dev,
priv->scan_request = request;

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

return err;
}
Expand Down

0 comments on commit a3ad38e

Please sign in to comment.