Commit baf74405 authored by Linus Torvalds's avatar Linus Torvalds

More IDE locking fixes. Found by Nick Piggin.

parent 6986d71d
...@@ -345,8 +345,9 @@ int ata_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned ...@@ -345,8 +345,9 @@ 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 */
return 0; spin_unlock_irq(drive->channel->lock);
return 0;
} }
return do_cmd_ioctl(drive, arg); return do_cmd_ioctl(drive, arg);
......
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