mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-14 17:14:09 +00:00
scsi: aacraid: Fix a potential spinlock double unlock bug
The driver does not unlock the reply queue spin lock after handling SMART adapter events. Instead it might attempt to unlock an already unlocked spin lock. Fixed by making sure the driver locks the spin lock before freeing it. Thank you dan for finding this issue out. Fixes: 6223a39fe6fbbeef (scsi: aacraid: Added support for hotplug) Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com> Reviewed-by: David Carroll <David.Carroll@microsemi.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
09624645e1
commit
d844752e18
@ -2215,7 +2215,7 @@ static void aac_process_events(struct aac_dev *dev)
|
||||
/* Thor AIF */
|
||||
aac_handle_sa_aif(dev, fib);
|
||||
aac_fib_adapter_complete(fib, (u16)sizeof(u32));
|
||||
continue;
|
||||
goto free_fib;
|
||||
}
|
||||
/*
|
||||
* We will process the FIB here or pass it to a
|
||||
|
Loading…
x
Reference in New Issue
Block a user