netlink: fix lockdep splats
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 5 Aug 2014 05:50:07 +0000 (07:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2014 05:58:06 +0000 (22:58 -0700)
commit67a24ac18b0262178ba9f05501b2c6e6731d449a
tree64686aacce6c4383de38ff937fdfdd95cc7be8bc
parent64a124edcc94011ce459f0b9bdf51e1783146712
netlink: fix lockdep splats

With netlink_lookup() conversion to RCU, we need to use appropriate
rcu dereference in netlink_seq_socket_idx() & netlink_seq_next()

Reported-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: e341694e3eb57fc ("netlink: Convert netlink_lookup() to use RCU protected hash table")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c