projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea374cb
)
sunrpc: handle allocation errors from __rpc_lookup_create()
author
Dan Carpenter
<error27@gmail.com>
Sun, 21 Mar 2010 16:10:34 +0000
(12:10 -0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 1 Apr 2010 22:58:42 +0000
(15:58 -0700)
commit
f1f0abe192a72e75d7c59972e30784d043fd8d73
upstream.
__rpc_lookup_create() can return ERR_PTR(-ENOMEM).
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/rpc_pipe.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/rpc_pipe.c
b/net/sunrpc/rpc_pipe.c
index 49278f830367eec97d34e862992d6f7f16e1e899..27a23785a50d3aea8e4e1e8aa78e8949d9c46c72 100644
(file)
--- a/
net/sunrpc/rpc_pipe.c
+++ b/
net/sunrpc/rpc_pipe.c
@@
-587,6
+587,8
@@
static struct dentry *__rpc_lookup_create_exclusive(struct dentry *parent,
struct dentry *dentry;
dentry = __rpc_lookup_create(parent, name);
+ if (IS_ERR(dentry))
+ return dentry;
if (dentry->d_inode == NULL)
return dentry;
dput(dentry);