Commit 693d5515 authored by Jens Axboe's avatar Jens Axboe Committed by James Bottomley

[PATCH] megaraid2 bad queuecommand return

If the command is already completed, megaraid_queue_command() must
return 0.
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 5ff0bd88
...@@ -1623,6 +1623,7 @@ megaraid_queue_command(struct scsi_cmnd *scp, void (* done)(struct scsi_cmnd *)) ...@@ -1623,6 +1623,7 @@ megaraid_queue_command(struct scsi_cmnd *scp, void (* done)(struct scsi_cmnd *))
if (!scb) { // command already completed if (!scb) { // command already completed
done(scp); done(scp);
return 0;
} }
return if_busy; return if_busy;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment