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
if (!arg) {
if (ide_spin_wait_hwgroup(drive))
return -EBUSY;
else
return 0;
/* Do nothing, just unlock */
spin_unlock_irq(drive->channel->lock);
return 0;
}
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