Commit baf74405 authored by Linus Torvalds's avatar Linus Torvalds

More IDE locking fixes. Found by Nick Piggin.

parent 6986d71d
...@@ -345,7 +345,8 @@ int ata_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned ...@@ -345,7 +345,8 @@ int ata_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned
if (!arg) { if (!arg) {
if (ide_spin_wait_hwgroup(drive)) if (ide_spin_wait_hwgroup(drive))
return -EBUSY; return -EBUSY;
else /* Do nothing, just unlock */
spin_unlock_irq(drive->channel->lock);
return 0; return 0;
} }
......
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