summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.14/630-packet_socket_type.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/patches-3.14/630-packet_socket_type.patch')
-rw-r--r--target/linux/generic/patches-3.14/630-packet_socket_type.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.14/630-packet_socket_type.patch b/target/linux/generic/patches-3.14/630-packet_socket_type.patch
index d0247af83f..4f3f5e8b7f 100644
--- a/target/linux/generic/patches-3.14/630-packet_socket_type.patch
+++ b/target/linux/generic/patches-3.14/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: