projects
/
openwrt
/
staging
/
luka.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kernel: fix more bgmac dma init/cleanup issues
[openwrt/staging/luka.git]
/
target
/
linux
/
generic
/
patches-3.18
/
077-08-bgmac-add-check-for-oversized-packets.patch
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 89e1a3236885cac4da6aeb4cfe0fe3e22fe758ac..9785621cbc7caa1a30fd0abef888cdc440810bc0 100644
(file)
--- 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;
+ }
+