Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e7734d3 authored by Mark Haverkamp's avatar Mark Haverkamp Committed by Linus Torvalds
Browse files

[PATCH] aacraid: host_lock not released fix



While doing some testing of error cases I ran into this bug.  In some cases
the reset handler can exit with the host_lock still held.

Signed-off-by: default avatarMark Haverkamp <markh@osdl.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1350843c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -453,9 +453,9 @@ static int aac_eh_reset(struct scsi_cmnd* cmd)
		/*
		 * We can exit If all the commands are complete
		 */
		spin_unlock_irq(host->host_lock);
		if (active == 0)
			return SUCCESS;
		spin_unlock_irq(host->host_lock);
		ssleep(1);
		spin_lock_irq(host->host_lock);
	}