aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorLatchesar Ionkov <lucho@ionkov.net>2006-06-28 04:26:51 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-28 14:59:05 -0700
commit9d7fa40098253a6768cfc3ffbbd5988ba852d364 (patch)
tree7bf6829b569462654d11a7cd3429db320bd69177 /fs/9p
parent94374e7cc369b972855cebd13ba942f4eb1be1ac (diff)
downloadkernel_samsung_espresso10-9d7fa40098253a6768cfc3ffbbd5988ba852d364.zip
kernel_samsung_espresso10-9d7fa40098253a6768cfc3ffbbd5988ba852d364.tar.gz
kernel_samsung_espresso10-9d7fa40098253a6768cfc3ffbbd5988ba852d364.tar.bz2
[PATCH] v9fs: fix fid check in v9fs_create
Fix an incorrect check whether a fid was allocated in v9fs_create and if it should be freed on error. Signed-off-by: Latchesar Ionkov <lucho@ionkov.net> Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 5c6bdf8..2f580a1 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -300,7 +300,7 @@ clunk_fid:
fid = V9FS_NOFID;
put_fid:
- if (fid >= 0)
+ if (fid != V9FS_NOFID)
v9fs_put_idpool(fid, &v9ses->fidpool);
kfree(fcall);