fs/fuse: fix ioctl type confusion
authorJann Horn <jann@thejh.net>
Sun, 16 Aug 2015 18:27:01 +0000 (20:27 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 16 Aug 2015 19:35:44 +0000 (12:35 -0700)
commit8ed1f0e22f49ef42e63875fd2529389a32ff3566
tree9f388d7ec994747b8703d371b49e1e27921b2533
parent1efdb5f0a9243ca8f3460a5ce1b407b06a021f02
fs/fuse: fix ioctl type confusion

fuse_dev_ioctl() performed fuse_get_dev() on a user-supplied fd,
leading to a type confusion issue. Fix it by checking file->f_op.

Signed-off-by: Jann Horn <jann@thejh.net>
Acked-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/dev.c