summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-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);