aboutsummaryrefslogtreecommitdiff
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2007-11-25 09:53:27 +0000
committerSteve French <sfrench@us.ibm.com>2007-11-25 09:53:27 +0000
commit058250a0d5886b4d96a195ecc7e3a75e2df5e4b1 (patch)
treefb67e8f5258c6aa11d4e8c39650e23de7556b38d /fs/fuse/file.c
parentcea218054ad277d6c126890213afde07b4eb1602 (diff)
parent2ffbb8377c7a0713baf6644e285adc27a5654582 (diff)
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 0fcdba9d47c..535b3739900 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -55,9 +55,10 @@ struct fuse_file *fuse_file_alloc(void)
if (!ff->reserved_req) {
kfree(ff);
ff = NULL;
+ } else {
+ INIT_LIST_HEAD(&ff->write_entry);
+ atomic_set(&ff->count, 0);
}
- INIT_LIST_HEAD(&ff->write_entry);
- atomic_set(&ff->count, 0);
}
return ff;
}