projects
/
15.05
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
imagebuilder: x86 fails to build inside the imagebuilder
[15.05/openwrt.git]
/
target
/
linux
/
generic
/
patches-3.12
/
630-packet_socket_type.patch
diff --git
a/target/linux/generic/patches-3.12/630-packet_socket_type.patch
b/target/linux/generic/patches-3.12/630-packet_socket_type.patch
index
1e915f6
..
60e8401
100644
(file)
--- a/
target/linux/generic/patches-3.12/630-packet_socket_type.patch
+++ b/
target/linux/generic/patches-3.12/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: