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>
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);