scsi: lpfc: Set elsiocb contexts to NULL after freeing it
authorJohannes Thumshirn <jthumshirn@suse.de>
Tue, 10 Jan 2017 11:05:54 +0000 (12:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:37:16 +0000 (14:37 +0200)
commit8c721e38055a36c881a904c1b4a5b6fd80c67edd
treef7bfa50598d74063f75b50bff01e336055d8da89
parent5c982bac211ccc3923519a980f2e9a53ea8e6b60
scsi: lpfc: Set elsiocb contexts to NULL after freeing it

[ Upstream commit 8667f515952feefebb3c0f8d9a9266c91b101a46 ]

Set the elsiocb contexts to NULL after freeing as others depend on it.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/lpfc/lpfc_els.c