projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Update defconfig
[firefly-linux-kernel-4.4.55.git]
/
net
/
compat.c
diff --git
a/net/compat.c
b/net/compat.c
index 8fd37cd7b501364800f6219034f9774b41b20bd5..d5d69fa15d07a65a26975797d654813e5f055568 100644
(file)
--- a/
net/compat.c
+++ b/
net/compat.c
@@
-476,8
+476,7
@@
asmlinkage long compat_sys_setsockopt(int fd, int level, int optname,
int err;
struct socket *sock;
- /* SO_SET_REPLACE seems to be the same in all levels */
- if (optname == IPT_SO_SET_REPLACE)
+ if (level == SOL_IPV6 && optname == IPT_SO_SET_REPLACE)
return do_netfilter_replace(fd, level, optname,
optval, optlen);