diff options
Diffstat (limited to 'net/core/sock_diag.c')
-rw-r--r-- | net/core/sock_diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock_diag.c b/net/core/sock_diag.c index ad704c757bb4..96e70ee05a8d 100644 --- a/net/core/sock_diag.c +++ b/net/core/sock_diag.c | |||
@@ -13,7 +13,7 @@ static const struct sock_diag_handler *sock_diag_handlers[AF_MAX]; | |||
13 | static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh); | 13 | static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh); |
14 | static DEFINE_MUTEX(sock_diag_table_mutex); | 14 | static DEFINE_MUTEX(sock_diag_table_mutex); |
15 | 15 | ||
16 | int sock_diag_check_cookie(void *sk, __u32 *cookie) | 16 | int sock_diag_check_cookie(void *sk, const __u32 *cookie) |
17 | { | 17 | { |
18 | if ((cookie[0] != INET_DIAG_NOCOOKIE || | 18 | if ((cookie[0] != INET_DIAG_NOCOOKIE || |
19 | cookie[1] != INET_DIAG_NOCOOKIE) && | 19 | cookie[1] != INET_DIAG_NOCOOKIE) && |