]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: fix mknod of regular file
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 23 May 2007 20:57:32 +0000 (13:57 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:11 +0000 (20:14 -0700)
commite2b7405092987f9ce0236b46470c3a91afc20242
tree5b683379c5c485a0fd1e22cbd16f62626b07d665
parentfb2c7139857745b7ca24f2c3bd17444330cece79
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