scsi: set correct completion code in scsi_send_eh_cmnd()
authorHannes Reinecke <hare@suse.de>
Thu, 8 May 2014 06:09:56 +0000 (08:09 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 10:35:11 +0000 (12:35 +0200)
commitac61d19559349e205dad7b5122b281419aa74a82
tree924a6f56c6c1e917c246ba30fc72196c12788bca
parent95eeb5f5880cd390fd59710f64dc7b84d1e9942f
scsi: set correct completion code in scsi_send_eh_cmnd()

->queuecommand returns '0' for successful command submission,
so we need to set the correct SCSI midlayer return value
when calling scsi_log_completion().

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reported-by: Robert Elliott <elliott@hp.com>
Cc: Stephen Cameron <scameron@beardog.cce.hp.com>
Tested-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/scsi_error.c