]> Pileus Git - ~andy/linux/blobdiff - net/core/sock_diag.c
sock_diag: Fix module netlink aliases
[~andy/linux] / net / core / sock_diag.c
index 9c27bcda59be193e30341074939cd42899cd5d1b..cee96f3681085922c0b776a1f85b94ace36d7c12 100644 (file)
@@ -64,7 +64,7 @@ static inline struct sock_diag_handler *sock_diag_lock_handler(int family)
 {
        if (sock_diag_handlers[family] == NULL)
                request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
-                               NETLINK_SOCK_DIAG, IPPROTO_IP);
+                               NETLINK_SOCK_DIAG, family);
 
        mutex_lock(&sock_diag_table_mutex);
        return sock_diag_handlers[family];
@@ -103,7 +103,7 @@ static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
        case DCCPDIAG_GETSOCK:
                if (inet_rcv_compat == NULL)
                        request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
-                                       NETLINK_SOCK_DIAG, IPPROTO_IP);
+                                       NETLINK_SOCK_DIAG, AF_INET);
 
                mutex_lock(&sock_diag_table_mutex);
                if (inet_rcv_compat != NULL)