* [PATCH] wifi: mac80211: Fix possible integer promotion issue
@ 2025-02-14 7:47 Ilan Peer
0 siblings, 0 replies; only message in thread
From: Ilan Peer @ 2025-02-14 7:47 UTC (permalink / raw)
To: linux-wireless; +Cc: Ilan Peer, Dan Carpenter
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>
---
net/mac80211/mlme.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-13 13:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14 7:47 [PATCH] wifi: mac80211: Fix possible integer promotion issue Ilan Peer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.