Skip to contentSkip to conversation

megaraid2 bad queuecommand return

PATCH New Jens Axboe 1 participant 1 message Nov 19, 2004

Subsystems (2)
lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

PATCH 1/1 megaraid2 bad queuecommand return

Hi,

If the command is already completed, megaraid_queue_command() must return 0.

===== drivers/scsi/megaraid/megaraid_mbox.c 1.9 vs edited =====

drivers/scsi/megaraid/megaraid_mbox.c +1 -0
@@ -1623,6 +1623,7 @@ megaraid_queue_command(struct scsi_cmnd 
 
 	if (!scb) {	// command already completed
 		done(scp);
+		return 0;
 	}
 
 	return if_busy;
Signature · 1 line
Jens Axboe