scsi: target: cxgbit: Fix cxgbit_fw4_ack()
authorBart Van Assche <bvanassche@acm.org>
Wed, 23 Oct 2019 20:21:50 +0000 (13:21 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Oct 2019 00:22:00 +0000 (20:22 -0400)
commitfc5b220b2dcf8b512d9bd46fd17f82257e49bf89
tree36887e39010db4209641a1cba4765df46b26ec23
parent8d8b83f5be2a3bdac3695a94e6cb5e50bd114869
scsi: target: cxgbit: Fix cxgbit_fw4_ack()

Use the pointer 'p' after having tested that pointer instead of before.

Fixes: 5cadafb236df ("target/cxgbit: Fix endianness annotations")
Cc: Varun Prakash <varun@chelsio.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191023202150.22173-1-bvanassche@acm.org
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/iscsi/cxgbit/cxgbit_cm.c