summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2025-02-14 09:47:21 +0200
committerJohannes Berg <johannes.berg@intel.com>2025-02-26 15:45:12 +0100
commitebf9944bed4ef69d29371cd3b7276f858c513954 (patch)
tree0ebfe5f886da91ca6c66c4578c9e4fdef8b2618d /net/mac80211
parent7d2497ff7e5ffd5a2e4fb1a7f2547db61bcbebdd (diff)
downloadlinux-next-ebf9944bed4ef69d29371cd3b7276f858c513954.tar.gz
linux-next-ebf9944bed4ef69d29371cd3b7276f858c513954.zip
wifi: mac80211: Fix possible integer promotion issue
Fix a possible integer promotion issue in mac80211 in ieee80211_ml_epcs() Fixes: de86c5f60839 ("wifi: mac80211: Add support for EPCS configuration") Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Ilan Peer <ilan.peer@intel.com> Link: https://patch.msgid.link/20250214074721.1613549-1-ilan.peer@intel.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/mlme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 4e8f0a5f6251..23d85a1abbc5 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -10704,7 +10704,7 @@ static void ieee80211_ml_epcs(struct ieee80211_sub_if_data *sdata,
elems->ml_epcs_len,
scratch, scratch_len,
IEEE80211_MLE_SUBELEM_FRAGMENT);
- if (len < sizeof(control))
+ if (len < (ssize_t)sizeof(control))
continue;
pos = scratch + sizeof(control);