fuse: fix mknod of regular file
commitb9ba347f27f2508e3da023688d047e111cbbe2da
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 23 May 2007 20:57:32 +0000 (23 13:57 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:11 +0000 (23 20:14 -0700)
tree5b683379c5c485a0fd1e22cbd16f62626b07d665
parentc12b3c62513ecf95c979d5c1785f99562b9dd10d
fuse: fix mknod of regular file

The wrong lookup flag was tested in ->create() causing havoc (error or
Oops) when a regular file was created with mknod() in a fuse filesystem.

Thanks to J. Cameijo Cerdeira for the report.

Kernels 2.6.18 onward are affected.  Please apply to -stable as well.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/dir.c