Fix procfs compat_ioctl regression
authorDavid Miller <davem@davemloft.net>
Sat, 28 Jul 2007 05:58:37 +0000 (22:58 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 29 Jul 2007 02:42:22 +0000 (19:42 -0700)
commit778f3dd5a13c9e1642e0b2efea4b769387a70afa
tree7a137adb91dcadf3e7b6756869ab73683ee41268
parent040b3a2df2dd26c3e401823f3b0ce3fe99e966c5
Fix procfs compat_ioctl regression

It is important to only provide the compat_ioctl method
if the downstream de->proc_fops does too, otherwise this
utterly confuses the logic in fs/compat_ioctl.c and we
end up doing the wrong thing.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/inode.c