aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 6fcc4bc07d19..080a880a1761 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3279,6 +3279,7 @@ int sock_load_diag_module(int family, int protocol)
3279 3279
3280#ifdef CONFIG_INET 3280#ifdef CONFIG_INET
3281 if (family == AF_INET && 3281 if (family == AF_INET &&
3282 protocol != IPPROTO_RAW &&
3282 !rcu_access_pointer(inet_protos[protocol])) 3283 !rcu_access_pointer(inet_protos[protocol]))
3283 return -ENOENT; 3284 return -ENOENT;
3284#endif 3285#endif