Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

armadefuego@gmail.com and committed by
John W. Linville
a3ad38e8 be36cacd

+3
+3
drivers/net/wireless/orinoco/cfg.c
··· 153 153 priv->scan_request = request; 154 154 155 155 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; 156 159 157 160 return err; 158 161 }