mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
wifi: mac80211: Fix possible integer promotion issue
Fix a possible integer promotion issue in mac80211 in ieee80211_ml_epcs()
Fixes: de86c5f608 ("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>
This commit is contained in:
parent
7d2497ff7e
commit
ebf9944bed
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user