aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.6
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
commit841b730f98dcdb7cc2ea5963fb023c7c040348e8 (patch)
tree32ac03243f534c981666c20b5adc53c197c3a87a /target/linux/generic/patches-3.6
parent6d213a644d61166c3991fafede3c9e36dffbdf1d (diff)
downloadupstream-841b730f98dcdb7cc2ea5963fb023c7c040348e8.tar.gz
upstream-841b730f98dcdb7cc2ea5963fb023c7c040348e8.tar.bz2
upstream-841b730f98dcdb7cc2ea5963fb023c7c040348e8.zip
kernel: fix pkt_type filter mask for packet sockets
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41178
Diffstat (limited to 'target/linux/generic/patches-3.6')
-rw-r--r--target/linux/generic/patches-3.6/630-packet_socket_type.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.6/630-packet_socket_type.patch b/target/linux/generic/patches-3.6/630-packet_socket_type.patch
index a630d1d823..b43c14594f 100644
--- a/target/linux/generic/patches-3.6/630-packet_socket_type.patch
+++ b/target/linux/generic/patches-3.6/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: