Skip to content

Commit 79d1ed5

Browse files
marcantorvalds
authored andcommitted
wifi: cfg80211: Partial revert "wifi: cfg80211: Fix use after free for wext"
This reverts part of commit 015b8cc ("wifi: cfg80211: Fix use after free for wext") This commit broke WPA offload by unconditionally clearing the crypto modes for non-WEP connections. Drop that part of the patch. Signed-off-by: Hector Martin <marcan@marcan.st> Reported-by: Ilya <me@0upti.me> Reported-and-tested-by: Janne Grunau <j@jannau.net> Reviewed-by: Eric Curtin <ecurtin@redhat.com> Fixes: 015b8cc ("wifi: cfg80211: Fix use after free for wext") Cc: stable@kernel.org Link: https://lore.kernel.org/linux-wireless/ZAx0TWRBlGfv7pNl@kroah.com/T/#m11e6e0915ab8fa19ce8bc9695ab288c0fe018edf Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c4ecd87 commit 79d1ed5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/wireless/sme.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,6 @@ int cfg80211_connect(struct cfg80211_registered_device *rdev,
15001500
connect->key = NULL;
15011501
connect->key_len = 0;
15021502
connect->key_idx = 0;
1503-
connect->crypto.cipher_group = 0;
1504-
connect->crypto.n_ciphers_pairwise = 0;
15051503
}
15061504

15071505
wdev->connect_keys = connkeys;

0 commit comments

Comments
 (0)