summaryrefslogtreecommitdiff
path: root/target/linux/lantiq
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-01-28 17:23:16 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-30 10:15:33 +0100
commit31b06409067a7d1cb6005ed24b97a56009276aaa (patch)
tree832b1d8fed16d30a6a19f36b5bcf409c212aab30 /target/linux/lantiq
parentec095b5bf3bf0e6c570232522004c17084ba909d (diff)
downloadmtk-20170518-31b06409067a7d1cb6005ed24b97a56009276aaa.zip
mtk-20170518-31b06409067a7d1cb6005ed24b97a56009276aaa.tar.gz
mtk-20170518-31b06409067a7d1cb6005ed24b97a56009276aaa.tar.bz2
lantiq: fix unaligned access in xrx200_poll_rx()
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'target/linux/lantiq')
-rw-r--r--target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch b/target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
index 4e60f30..acaadba 100644
--- a/target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
+++ b/target/linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
@@ -1190,8 +1190,8 @@ Subject: [PATCH 25/36] NET: MIPS: lantiq: adds xrx200-net
+ if ((desc->ctl & (LTQ_DMA_OWN | LTQ_DMA_C)) == LTQ_DMA_C) {
+#ifdef SW_ROUTING
+ struct sk_buff *skb = ch->skb[ch->dma.desc];
-+ u32 *special_tag = (u32*)skb->data;
-+ int port = (special_tag[1] >> SPPID_SHIFT) & SPPID_MASK;
++ u8 *special_tag = (u8*)skb->data;
++ int port = (special_tag[7] >> SPPID_SHIFT) & SPPID_MASK;
+ xrx200_hw_receive(ch, priv->hw->port_map[port]);
+#else
+ xrx200_hw_receive(ch, 0);