Hoang Le 746a1eda68 tipc: add NULL pointer check to prevent kernel oops
Calling:
tipc_node_link_down()->
   - tipc_node_write_unlock()->tipc_mon_peer_down()
   - tipc_mon_peer_down()
  just after disabling bearer could be caused kernel oops.

Fix this by adding a sanity check to make sure valid memory
access.

Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-15 00:07:00 -07:00
..
2018-03-23 13:12:18 -04:00
2018-08-29 18:04:54 -07:00
2020-03-15 00:07:00 -07:00
2020-02-10 10:23:00 +01:00
2019-08-08 22:11:39 -07:00
2018-12-19 11:49:25 -08:00