diff options
author | Kalle Valo <kvalo@kernel.org> | 2023-08-02 11:36:37 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-08-02 11:36:37 +0200 |
commit | 111d5c4797c0f0314de8ef68b50259798ef3a127 (patch) | |
tree | c6a34d5876df16e1f23e993e8788f992314baf81 /drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | |
parent | wifi: libertas: prefer kstrtoX() for simple integer conversions (diff) | |
parent | wifi: mt76: mt7915: fix power-limits while chan_switch (diff) | |
download | linux-111d5c4797c0f0314de8ef68b50259798ef3a127.tar.xz linux-111d5c4797c0f0314de8ef68b50259798ef3a127.zip |
Merge tag 'mt76-for-kvalo-2023-07-31' of https://github.com/nbd168/wireless
mt76 patches for 6.6
* fixes
* preparation for mt7925 support
* mt7981 support
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_mac.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c index 3e41d809ade3..d5db6ffd6d36 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c @@ -853,7 +853,8 @@ int mt76x02_mac_process_rx(struct mt76x02_dev *dev, struct sk_buff *skb, if (WARN_ON_ONCE(len > skb->len)) return -EINVAL; - pskb_trim(skb, len); + if (pskb_trim(skb, len)) + return -EINVAL; status->chains = BIT(0); signal = mt76x02_mac_get_rssi(dev, rxwi->rssi[0], 0); |