fuse: do not use uninitialized i_mode
authorMaxim Patlasov <MPatlasov@parallels.com>
Mon, 28 Apr 2014 12:19:21 +0000 (14:19 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 28 Apr 2014 12:19:21 +0000 (14:19 +0200)
commitd31433c8b06d44e27f7637574137dc4b5e6fd1d1
tree9f792e395a57bdec407c87df9bbd6da0de9b5c4e
parentaeb4eb6b55261f44d3705f0a3b9e4906bfa5e416
fuse: do not use uninitialized i_mode

When inode is in I_NEW state, inode->i_mode is not initialized yet. Do not
use it before fuse_init_inode() is called.

Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/inode.c