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 13:03:44 +0000 (14:03 +0100)
commitf703437099b4ec09a643ad0ae2839ca292601166
tree56928f835f0180c521429057b50e18a8395653ef
parent9ad970c8a13595e38d3af98114bcbbec6d8a5be4
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