Merge pull request #116 from NomDeTom/irate/scan-freed-request

USB: forget a scan whose command failed, so a late answer cannot finish a freed request
This commit is contained in:
MinQ authored and GitHub committed 2026-10-23 16:11:29 +08:00
commit d910a714f1
1 file changed
+3 -1
+3 -1
View File
@@ -2947,8 +2947,10 @@ static int rwnx_cfg80211_scan(struct wiphy *wiphy,
} }
rwnx_hw->scan_request = request; rwnx_hw->scan_request = request;
if ((error = rwnx_send_scanu_req(rwnx_hw, rwnx_vif, request))) if ((error = rwnx_send_scanu_req(rwnx_hw, rwnx_vif, request))) {
rwnx_hw->scan_request = NULL;
return error; return error;
}
return 0; return 0;
} }