mt76: add size check for additional rx fragments
authorFelix Fietkau <nbd@nbd.name>
Tue, 6 Nov 2018 11:29:44 +0000 (12:29 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 11 Jan 2019 14:10:14 +0000 (15:10 +0100)
commit9fe310546559d123103c39dc85eb54dc1316f450
tree5d8ec6280728a805971ecada8ed0a34a41ea856f
parent4ad0be160544ffbdafb7cec39bb8e6dd0a97317a
mt76: add size check for additional rx fragments

So far the code only validates the buffer size of the first skb.
Extend this check to cover additional fragments as well, in case the size
is corrupted during a DMA reset.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c