]> git.hungrycats.org Git - linux/commit
[PATCH] fix block layer ioctl bug
authorAndrew Morton <akpm@osdl.org>
Sat, 15 May 2004 03:22:41 +0000 (20:22 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 15 May 2004 03:22:41 +0000 (20:22 -0700)
commitdeb2ae4a2d3d744b0ee21a6e8ba41e72fef50aef
tree4d2218f04aa79eb0cb2c709f10af87e6ede5b916
parent4539d2e48ff3230c426d048770c52f1f0eaee3dc
[PATCH] fix block layer ioctl bug

From: Alan Cox <alan@redhat.com>

The block layer checks for -EINVAL from block layer driver ioctls.  This is
wrong - ENOTTY is unknown and some drivers correctly use this.  I suspect
for an internal ioctl 2.7 should change to -ENOIOCTLCMD and bitch about old
style returns

This is conservative fix for the 2.6 case, it keeps the bogus -EINVAL to
avoid breaking stuff
drivers/block/ioctl.c