staging/lustre/lnet: fix potential null pointer dereference
authorOleg Drokin <green@linuxhacker.ru>
Mon, 28 Apr 2014 02:25:58 +0000 (22:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:35:21 +0000 (19:35 -0400)
commitd36175e9d2c986ee653277928bfcbab6ddf6bb85
tree744e00a6269b7e5079af47c7a4e1df1d5c0f453b
parent109dae8dab0f48ffbc88910084b3c795c647f6f4
staging/lustre/lnet: fix potential null pointer dereference

Pointer 'ni' checked for NULL at line 1569 may be passed to
function and may be dereferenced there by passing argument 1 to
function 'lnet_ni_notify_locked' at line 1621.
found by Klocwork Insight tool

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
CC: Dmitry Eremin <dmitry.eremin@intel.com>
CC: Liang Zhen <liang.zhen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/router.c