mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-05-02 18:15:03 -04:00
wifi: virt_wifi: Fix page fault on connect
This patch prevents page fault in __cfg80211_connect_result()[1] when connecting a virt_wifi device, while ensuring that virt_wifi can connect properly. [1] https://lore.kernel.org/linux-wireless/20250909063213.1055024-1-guan_yufei@163.com/ Closes: https://lore.kernel.org/linux-wireless/20250909063213.1055024-1-guan_yufei@163.com/ Signed-off-by: James Guan <guan_yufei@163.com> Link: https://patch.msgid.link/20250910111929.137049-1-guan_yufei@163.com [remove irrelevant network-manager instructions] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
8cc71fc3b8
commit
9c600589e1
@@ -277,7 +277,9 @@ static void virt_wifi_connect_complete(struct work_struct *work)
|
||||
priv->is_connected = true;
|
||||
|
||||
/* Schedules an event that acquires the rtnl lock. */
|
||||
cfg80211_connect_result(priv->upperdev, requested_bss, NULL, 0, NULL, 0,
|
||||
cfg80211_connect_result(priv->upperdev,
|
||||
priv->is_connected ? fake_router_bssid : NULL,
|
||||
NULL, 0, NULL, 0,
|
||||
status, GFP_KERNEL);
|
||||
netif_carrier_on(priv->upperdev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user