1: ffcc38550fb0 ! 1: 48b501845409 wifi: nxpwifi: synchronize scan cancellation state @@ Metadata ## Commit message ## wifi: nxpwifi: synchronize scan cancellation state  - Read and update scan_processing under nxpwifi_cmd_lock so cancellation - cannot race with scan state changes. Skip scan completion when no scan - was active. + Before the change, nxpwifi_cancel_scan() checked scan_processing outside + the lock, then acquired nxpwifi_cmd_lock only to clear it. That left a + gap where another path could change the scan state between the check and + the clear. Read and update scan_processing variable under nxpwifi_cmd_lock + so cancellation cannot race with scan state changes and skip scan completion + when no scan was active.  Signed-off-by: Vishal Gupta   @@ drivers/net/wireless/nxp/nxpwifi/scan.c: void nxpwifi_cancel_scan(struct nxpwifi  + };  +  + nxpwifi_dbg(adapter, INFO, -+ "info: aborting scan\n"); ++ "info: aborting scan\n");  + cfg80211_scan_done(priv->scan_request, &info);  + priv->scan_request = NULL;  + priv->scan_aborting = false;