Files
linux-stable-mirror/include/net
Bert Karwatzki d7500fbfb1 wifi: check if socket flags are valid
Checking the SOCK_WIFI_STATUS flag bit in sk_flags may give wrong results
since sk_flags are part of a union and the union is used otherwise. Add
sk_requests_wifi_status() which checks if sk is non-NULL, sk is a full
socket (so flags are valid) and checks the flag bit.

Fixes: 76a853f86c ("wifi: free SKBTX_WIFI_STATUS skb tx_flags flag")
Suggested-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Bert Karwatzki <spasswolf@web.de>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://patch.msgid.link/20250520223430.6875-1-spasswolf@web.de
[edit commit message, fix indentation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-05-21 09:26:22 +02:00
..
2024-10-08 15:33:49 -07:00
2024-12-09 14:44:59 -08:00
2025-01-20 12:16:04 -08:00
2025-04-24 17:03:45 -07:00
2025-03-24 10:26:53 +00:00
2024-12-09 14:44:59 -08:00
2024-11-13 18:49:50 -08:00
2024-12-06 17:43:08 -08:00
2025-04-15 08:21:46 -07:00
2025-02-06 16:27:30 -08:00
2025-04-11 18:58:10 -07:00
2025-04-11 18:58:10 -07:00
2025-05-21 09:26:22 +02:00
2025-04-10 18:29:26 -07:00
2025-04-22 11:11:16 +02:00