Whamcloud - gitweb
LU-8001 nodemap: fix null deref when reclassifying 95/19595/2
authorKit Westneat <kit.westneat@gmail.com>
Fri, 15 Apr 2016 03:05:58 +0000 (23:05 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 22 Apr 2016 15:47:37 +0000 (15:47 +0000)
commit475576e74ec315e316fe6528c97c437511b18872
tree4586ee8bbf59359d633c358f6ddfdbb983b761a0
parent3222fcd13868a9fcc520af53ae1ff739ba59908f
LU-8001 nodemap: fix null deref when reclassifying

There are some situations in which an export's connection can be
NULL. This patch adds a NULL check before dereferencing in
nm_member_reclassify_nodemap. If the connection is null, keep export
in current nodemap since it should get reclassified on reconnect.

Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: I795afdac3b388e883bafe5a79c8237794bc01ef6
Reviewed-on: http://review.whamcloud.com/19595
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/nodemap_member.c