Commit 9d7fa400 authored by Latchesar Ionkov's avatar Latchesar Ionkov Committed by Linus Torvalds
Browse files

[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: default avatarLatchesar Ionkov <>
Cc: Eric Van Hensbergen <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 94374e7c
......@@ -300,7 +300,7 @@ clunk_fid:
fid = V9FS_NOFID;
if (fid >= 0)
if (fid != V9FS_NOFID)
v9fs_put_idpool(fid, &v9ses->fidpool);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment