]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: cfg80211: fix off-by-one in element defrag
authorJohannes Berg <johannes.berg@intel.com>
Sun, 27 Aug 2023 11:05:19 +0000 (14:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:56:46 +0000 (11:56 +0100)
commitfc658d36928dd260c545ec0d2666aea1fd97f983
tree4686f5eeb4da06d2c3bcd4b218ff0f74053a73d6
parent13455e5b986485fa222fec4f1f82e2a7b7c45e40
wifi: cfg80211: fix off-by-one in element defrag

[ Upstream commit 43125539fc69c6aa63d34b516939431391bddeac ]

If a fragment is the last element, it's erroneously not
accepted. Fix that.

Fixes: f837a653a097 ("wifi: cfg80211: add element defragmentation helper")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230827135854.adca9fbd3317.I6b2df45eb71513f3e48efd196ae3cddec362dc1c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/scan.c