projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bfc96a
)
9p: potential ERR_PTR() dereference
author
Dan Carpenter
<error27@gmail.com>
Wed, 4 Aug 2010 16:27:45 +0000
(16:27 +0000)
committer
Eric Van Hensbergen
<ericvh@gmail.com>
Mon, 30 Aug 2010 15:35:28 +0000
(10:35 -0500)
p9_client_walk() can return error values if we run out of space or there
is a problem with the network.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/fid.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/9p/fid.c
b/fs/9p/fid.c
index 358563689064df61c9b81713ad8bb8911c6518bd..6406f896bf95fe56d404f40cdae7e083d88e3e9c 100644
(file)
--- a/
fs/9p/fid.c
+++ b/
fs/9p/fid.c
@@
-242,7
+242,8
@@
struct p9_fid *v9fs_fid_lookup(struct dentry *dentry)
}
kfree(wnames);
fid_out:
- v9fs_fid_add(dentry, fid);
+ if (!IS_ERR(fid))
+ v9fs_fid_add(dentry, fid);
err_out:
up_read(&v9ses->rename_sem);
return fid;