aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r--drivers/ide/ide.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index 97b162ca9885..287a66201150 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -1364,6 +1364,11 @@ int generic_ide_ioctl(ide_drive_t *drive, struct file *file, struct block_device
1364 1364
1365 spin_lock_irqsave(&ide_lock, flags); 1365 spin_lock_irqsave(&ide_lock, flags);
1366 1366
1367 if (HWGROUP(drive)->resetting) {
1368 spin_unlock_irqrestore(&ide_lock, flags);
1369 return -EBUSY;
1370 }
1371
1367 ide_abort(drive, "drive reset"); 1372 ide_abort(drive, "drive reset");
1368 1373
1369 BUG_ON(HWGROUP(drive)->handler); 1374 BUG_ON(HWGROUP(drive)->handler);