[PATCH] v9fs: fix fid check in v9fs_create

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes an incorrect check whether a fid was allocated in
v9fs_create and if it should be freed on error.

Signed-off-by: Latchesar Ionkov <[email protected]>

---
commit 11658df9c0dac2f2fdffc135f1daa3a711d21d21
tree 356a204b379e8c02d17e8987d994842c94122b2f
parent c675b970b2befed791fa29f606852e205a009e62
author Latchesar Ionkov <[email protected]> Mon, 26 Jun 2006 11:09:47 -0600
committer Latchesar Ionkov <[email protected]> Mon, 26 Jun 2006 11:09:47 -0600

 fs/9p/vfs_inode.c |    2 +-
 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);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux