mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
[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>
This commit is contained in:
parent
94374e7cc3
commit
9d7fa40098
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user