diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-04-13 20:08:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-04-13 20:08:30 +0000 |
commit | 87f854059aa3c703a87e08649801b15c93b845e7 (patch) | |
tree | 0ca977f242f1617f1a337e4de631975464a71660 /target/linux/generic/patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch | |
parent | 232c61742e7391edeb7c429ab9cc14652c2894ac (diff) | |
download | mtk-20170518-87f854059aa3c703a87e08649801b15c93b845e7.zip mtk-20170518-87f854059aa3c703a87e08649801b15c93b845e7.tar.gz mtk-20170518-87f854059aa3c703a87e08649801b15c93b845e7.tar.bz2 |
kernel: fix more bgmac dma init/cleanup issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45422
Diffstat (limited to 'target/linux/generic/patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch')
-rw-r--r-- | target/linux/generic/patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch b/target/linux/generic/patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch index 89e1a32..9785621 100644 --- a/target/linux/generic/patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch +++ b/target/linux/generic/patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch @@ -18,7 +18,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> + if (len > BGMAC_RX_ALLOC_SIZE) { + bgmac_err(bgmac, "Found oversized packet at slot %d, DMA issue!\n", + ring->start); -+ kfree(buf); ++ put_page(virt_to_head_page(buf)); + break; + } + |