diff options
author | Zoltan HERPAI <wigyori@uid0.hu> | 2016-10-12 00:15:28 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-10-12 00:15:28 +0200 |
commit | a7099373073304de9c0b6aa6d0909b4d079ebe2f (patch) | |
tree | ec112cdb04541c437183cade6d4cd95e6286e9e9 /target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch | |
parent | 4acd4da998e71c681f7030f9706abda055f95ccc (diff) | |
download | master-187ad058-a7099373073304de9c0b6aa6d0909b4d079ebe2f.tar.gz master-187ad058-a7099373073304de9c0b6aa6d0909b4d079ebe2f.tar.bz2 master-187ad058-a7099373073304de9c0b6aa6d0909b4d079ebe2f.zip |
Revert "kernel: bump 4.1 to 4.1.30"
Stay on 4.1.27
This reverts commit 231ef70f455fcc230a400af90a13e181a2c261cd.
Diffstat (limited to 'target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch')
-rw-r--r-- | target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch b/target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch new file mode 100644 index 0000000000..2b9c4b00a2 --- /dev/null +++ b/target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch @@ -0,0 +1,17 @@ +Fix a regression in the af_packet code that was breaking PPPoE + +pppd sends packets with only a header and no payload. + +Signed-off-by: Felix Fietkau <nbd@nbd.name> + +--- a/net/packet/af_packet.c ++++ b/net/packet/af_packet.c +@@ -2112,7 +2112,7 @@ static void tpacket_destruct_skb(struct + static bool ll_header_truncated(const struct net_device *dev, int len) + { + /* net device doesn't like empty head */ +- if (unlikely(len <= dev->hard_header_len)) { ++ if (unlikely(len < dev->hard_header_len)) { + net_warn_ratelimited("%s: packet size is too short (%d <= %d)\n", + current->comm, len, dev->hard_header_len); + return true; |