libata: fix unbalanced spin_lock_irqsave/spin_unlock_irq() in ata_scsi_park_show()
authorTejun Heo <tj@kernel.org>
Thu, 18 Feb 2016 16:50:37 +0000 (11:50 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 18 Feb 2016 16:53:17 +0000 (11:53 -0500)
commit3948b6f2b7677165324afe52c3bd0088ca7c776c
treee45b65abd715060683cb22ddd54b0fd2fd310c10
parenta2127e400edd2258fda6d83fe8b10b878a3595d9
libata: fix unbalanced spin_lock_irqsave/spin_unlock_irq() in ata_scsi_park_show()

ata_scsi_park_show() was pairing spin_lock_irqsave() with
spin_unlock_irq().  As the function is always called with irq enabled,
it didn't actually break anything.  Use spin_lock_irq() instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Elias Oltmanns <eo@nebensachen.de>
drivers/ata/libata-scsi.c