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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jan 2018 19:53:43 +0000 (14:53 -0500)
commit096b9854c04df86f03b38a97d40b6506e5730919
tree5e5416a90a2a1a86019a1409e108beaa26fc8f1f
parent17d0fb0caa68f2bfd8aaa8125ff15abebfbfa1d7
net: Allow neigh contructor functions ability to modify the primary_key

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>
net/core/neighbour.c