staging/lustre/lnet: fix potential null pointer dereference in kiblnd_rejected
authorDmitry Eremin <dmitry.eremin@intel.com>
Mon, 28 Apr 2014 02:25:57 +0000 (22:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:35:21 +0000 (19:35 -0400)
commit109dae8dab0f48ffbc88910084b3c795c647f6f4
tree64031c87129f4dcb3a987acc401e3568d1d5188b
parent1ae2bdb21e68744b726d2bdb06e9aef7295e44aa
staging/lustre/lnet: fix potential null pointer dereference in kiblnd_rejected

Null pointer 'cp' that comes from line 2544 may be dereferenced
at line 2618.
found by Klocwork Insight tool

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: http://review.whamcloud.com/9386
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4629
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Isaac Huang <he.huang@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c