vserver 1.9.3
[linux-2.6.git] / drivers / block / ioctl.c
index 283a9f2..43ff0c6 100644 (file)
@@ -194,7 +194,8 @@ int blkdev_ioctl(struct inode *inode, struct file *file, unsigned cmd,
                        return -EACCES;
                if (disk->fops->ioctl) {
                        ret = disk->fops->ioctl(inode, file, cmd, arg);
-                       if (ret != -EINVAL)
+                       /* -EINVAL to handle old uncorrected drivers */
+                       if (ret != -EINVAL && ret != -ENOTTY)
                                return ret;
                }
                fsync_bdev(bdev);