aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.3
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-13 09:34:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-13 09:34:03 +0000
commita045629b04d5f328044ac2b0dddb7e11e6585336 (patch)
tree00184f86c34019e00388d56a740cbc09b805b754 /target/linux/generic/patches-3.3
parent90ee91f93d55bc225d127d25107e8541fb482ee2 (diff)
downloadupstream-a045629b04d5f328044ac2b0dddb7e11e6585336.tar.gz
upstream-a045629b04d5f328044ac2b0dddb7e11e6585336.tar.bz2
upstream-a045629b04d5f328044ac2b0dddb7e11e6585336.zip
kernel: fix pkt_type filter mask for packet sockets
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41178 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.3')
-rw-r--r--target/linux/generic/patches-3.3/630-packet_socket_type.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.3/630-packet_socket_type.patch b/target/linux/generic/patches-3.3/630-packet_socket_type.patch
index 231b745c6a..bcb399141f 100644
--- a/target/linux/generic/patches-3.3/630-packet_socket_type.patch
+++ b/target/linux/generic/patches-3.3/630-packet_socket_type.patch
@@ -110,7 +110,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+ return -EINVAL;
+ if (copy_from_user(&val, optval, sizeof(val)))
+ return -EFAULT;
-+ po->pkt_type = val & ~PACKET_LOOPBACK;
++ po->pkt_type = val & ~BIT(PACKET_LOOPBACK);
+ return 0;
+ }
default: