wifi: mac80211: check defragmentation succeeded
authorJohannes Berg <johannes.berg@intel.com>
Mon, 11 Dec 2023 07:05:30 +0000 (09:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 12 Dec 2023 09:14:57 +0000 (10:14 +0100)
commit98849ba2aa9db46e62720fb686a9d63ed9887806
tree3dd6b9f65091450b3cdee1d3380365b9ccd0d6eb
parent63bafd9d5421959b2124dd940ed8d7462d99f449
wifi: mac80211: check defragmentation succeeded

We need to check that cfg80211_defragment_element()
didn't return an error, since it can fail due to bad
input, and we didn't catch that before.

Fixes: 8eb8dd2ffbbb ("wifi: mac80211: Support link removal using Reconfiguration ML element")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20231211085121.8595a6b67fc0.I1225edd8f98355e007f96502e358e476c7971d8c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c