]> git.itanic.dy.fi Git - linux-stable/commit
scsi: target: cxgbit: Fix cxgbit_fw4_ack()
authorBart Van Assche <bvanassche@acm.org>
Wed, 23 Oct 2019 20:21:50 +0000 (13:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 11:43:32 +0000 (12:43 +0100)
commit661c68cf1787d5754c3cb43a6c5934ca568e604b
treeacb4a3f9fe198fce5c312fd31ee8e6727c6c91c5
parent294da39e05db61cbad1f3367de15176215fdf422
scsi: target: cxgbit: Fix cxgbit_fw4_ack()

commit fc5b220b2dcf8b512d9bd46fd17f82257e49bf89 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/iscsi/cxgbit/cxgbit_cm.c