diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-13 09:34:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-13 09:34:03 +0000 |
commit | a045629b04d5f328044ac2b0dddb7e11e6585336 (patch) | |
tree | 00184f86c34019e00388d56a740cbc09b805b754 /target/linux/generic/patches-3.8 | |
parent | 90ee91f93d55bc225d127d25107e8541fb482ee2 (diff) | |
download | upstream-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.8')
-rw-r--r-- | target/linux/generic/patches-3.8/630-packet_socket_type.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.8/630-packet_socket_type.patch b/target/linux/generic/patches-3.8/630-packet_socket_type.patch index 0671a28e9b..d1a9ee23a8 100644 --- a/target/linux/generic/patches-3.8/630-packet_socket_type.patch +++ b/target/linux/generic/patches-3.8/630-packet_socket_type.patch @@ -102,7 +102,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: |