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-12-bgmac-drop-ring-num_slots.patch | |
parent | 232c61742e7391edeb7c429ab9cc14652c2894ac (diff) | |
download | upstream-87f854059aa3c703a87e08649801b15c93b845e7.tar.gz upstream-87f854059aa3c703a87e08649801b15c93b845e7.tar.bz2 upstream-87f854059aa3c703a87e08649801b15c93b845e7.zip |
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-12-bgmac-drop-ring-num_slots.patch')
-rw-r--r-- | target/linux/generic/patches-3.18/077-12-bgmac-drop-ring-num_slots.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.18/077-12-bgmac-drop-ring-num_slots.patch b/target/linux/generic/patches-3.18/077-12-bgmac-drop-ring-num_slots.patch index 6709aaa4ea..36acc19716 100644 --- a/target/linux/generic/patches-3.18/077-12-bgmac-drop-ring-num_slots.patch +++ b/target/linux/generic/patches-3.18/077-12-bgmac-drop-ring-num_slots.patch @@ -44,7 +44,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> - for (i = 0; i < ring->num_slots; i++) { + for (i = 0; i < BGMAC_RX_RING_SLOTS; i++) { slot = &ring->slots[i]; - if (!slot->buf) + if (!slot->dma_addr) continue; @@ -543,7 +543,8 @@ static void bgmac_dma_rx_ring_free(struc } |