aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-13 20:08:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-04-13 20:08:30 +0000
commit2fb7989420a673711f44c4dbc18bca1d85bf77e3 (patch)
tree199ae4847d43199e272f596f7d35cf30e007ae41 /target/linux/generic/patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch
parentc08644341187fcc4c599de0caf2686b7b022ea85 (diff)
downloadmaster-187ad058-2fb7989420a673711f44c4dbc18bca1d85bf77e3.tar.gz
master-187ad058-2fb7989420a673711f44c4dbc18bca1d85bf77e3.tar.bz2
master-187ad058-2fb7989420a673711f44c4dbc18bca1d85bf77e3.zip
kernel: fix more bgmac dma init/cleanup issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45422 3c298f89-4303-0410-b956-a3cf2f4a3e73
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.patch2
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 89e1a32368..9785621cbc 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;
+ }
+