From 87f854059aa3c703a87e08649801b15c93b845e7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 13 Apr 2015 20:08:30 +0000 Subject: kernel: fix more bgmac dma init/cleanup issues Signed-off-by: Felix Fietkau SVN-Revision: 45422 --- .../patches-3.18/077-08-bgmac-add-check-for-oversized-packets.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '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 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 + 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; + } + -- cgit v1.2.3