James Smart a6517db900 lpfc: Fix crash when unregistering default rpi.
The default rpi completion handler does back to back puts to force the
removal of the ndlp. This ends up calling lpfc_unreg_rpi after the
reference count is at 0.

Fix:  Check the reference count of the ndlp before getting the ref to
make sure we are not getting a reference on a removed object.

Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: James Smart <james.smart@avagotech.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-04-11 16:57:09 -04:00
..
2015-04-10 07:50:42 -07:00
2015-06-05 22:40:19 -07:00
2016-03-18 15:21:23 -04:00
2011-03-31 11:26:23 -03:00
2015-04-10 07:50:42 -07:00