ibmvscsis: Clear left-over abort_cmd pointers
authorBryant G. Ly <bryantly@linux.vnet.ibm.com>
Tue, 9 May 2017 16:50:26 +0000 (11:50 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 16 May 2017 03:17:26 +0000 (20:17 -0700)
commit98883f1b5415ea9dce60d5178877d15f4faa10b8
treebbfed9339ba2659154b8c01208bdf9e35b0d39ca
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
ibmvscsis: Clear left-over abort_cmd pointers

With the addition of ibmvscsis->abort_cmd pointer within
commit 25e78531268e ("ibmvscsis: Do not send aborted task response"),
make sure to explicitly NULL these pointers when clearing
DELAY_SEND flag.

Do this for two cases, when getting the new new ibmvscsis
descriptor in ibmvscsis_get_free_cmd() and before posting
the response completion in ibmvscsis_send_messages().

Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Reviewed-by: Michael Cyr <mikecyr@linux.vnet.ibm.com>
Cc: <stable@vger.kernel.org> # v4.8+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c