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.6/630-packet_socket_type.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/generic/patches-3.6') 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 a630d1d..b43c145 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 + 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.1