]> git.baikalelectronics.ru Git - kernel.git/commit
mpls: fix clearing of dead nh_flags on link up
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 31 May 2017 06:50:36 +0000 (23:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 18:48:24 +0000 (14:48 -0400)
commitd2c9b39370913baac933c92f4a49dd28bc438f74
tree85255531c646af1ed823f1665a7fc091484ca100
parenta86b015c86cca3b739c92332360cd9e99e155c47
mpls: fix clearing of dead nh_flags on link up

recent fixes to use WRITE_ONCE for nh_flags on link up,
accidently ended up leaving the deadflags on a nh. This patch
fixes the WRITE_ONCE to use freshly evaluated nh_flags.

Fixes: a8c343ddc62d ("net: mpls: rt_nhn_alive and nh_flags should be accessed using READ_ONCE")
Reported-by: Satish Ashok <sashok@cumulusnetworks.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c