git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vserver 1.9.3
[linux-2.6.git]
/
drivers
/
block
/
ioctl.c
diff --git
a/drivers/block/ioctl.c
b/drivers/block/ioctl.c
index
283a9f2
..
43ff0c6
100644
(file)
--- a/
drivers/block/ioctl.c
+++ b/
drivers/block/ioctl.c
@@
-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);