From 841b730f98dcdb7cc2ea5963fb023c7c040348e8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 13 Jun 2014 09:34:03 +0000 Subject: kernel: fix pkt_type filter mask for packet sockets Signed-off-by: Felix Fietkau SVN-Revision: 41178 --- target/linux/generic/patches-3.14/630-packet_socket_type.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/generic/patches-3.14/630-packet_socket_type.patch') 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 + 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: -- cgit v1.2.3