Whamcloud - gitweb
LU-7734 lnet: fix NULL access in lnet_peer_aliveness_enabled
authorAmir Shehata <amir.shehata@intel.com>
Fri, 26 Aug 2016 19:39:27 +0000 (12:39 -0700)
committerAmir Shehata <amir.shehata@intel.com>
Wed, 25 Jan 2017 03:10:17 +0000 (19:10 -0800)
commitf85f1cd257871a7a54600463a7f6f6ad1513f37e
treeeb9d626ef4e13b897784c7711058e494ec5264ea
parentb38eb0b6c483e40a6112d02cffeed53c3ee5a743
LU-7734 lnet: fix NULL access in lnet_peer_aliveness_enabled

When a peer is not on a local network, lpni->lpni_net is NULL.
The lpni_net is access in lnet_peer_aliveness_enabled() without
checking if it's NULL. Fixed.

Test-Parameters: trivial
Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: If328728e2bda2a19b273140a20c04b22bdda6bc4
Reviewed-on: http://review.whamcloud.com/22183
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Olaf Weber <olaf@sgi.com>
lnet/include/lnet/lib-types.h