net: Allow neigh contructor functions ability to modify the primary_key
authorJim Westfall <jwestfall@surrealistic.net>
Sun, 14 Jan 2018 12:18:50 +0000 (04:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jan 2018 11:55:55 +0000 (12:55 +0100)
commit014510b11781c7ba17b4e2c25720ce15233c712f
tree076313b2d7ff032c7e799c1d4e7f0b1fa9ffc147
parent66c16a22e3b141152c2bc85236b48372b2b1e984
net: Allow neigh contructor functions ability to modify the primary_key

[ Upstream commit 096b9854c04df86f03b38a97d40b6506e5730919 ]

Use n->primary_key instead of pkey to account for the possibility that a neigh
constructor function may have modified the primary_key value.

Signed-off-by: Jim Westfall <jwestfall@surrealistic.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/neighbour.c