aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 84ea76ca3f1f..a5d7ed627563 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -1002,11 +1002,8 @@ static struct sock *__netlink_lookup(struct netlink_table *table, u32 portid,
1002 .net = net, 1002 .net = net,
1003 .portid = portid, 1003 .portid = portid,
1004 }; 1004 };
1005 u32 hash;
1006 1005
1007 hash = rhashtable_hashfn(&table->hash, &portid, sizeof(portid)); 1006 return rhashtable_lookup_compare(&table->hash, &portid,
1008
1009 return rhashtable_lookup_compare(&table->hash, hash,
1010 &netlink_compare, &arg); 1007 &netlink_compare, &arg);
1011} 1008}
1012 1009