Prev: [026/156] V4L/DVB (13961): em28xx-dvb: fix memleak in dvb_fini()
Next: [064/156] nfsd: ensure sockets are closed on error
From: Greg KH on 30 Mar 2010 19:50 2.6.33-stable review patch. If anyone has any objections, please let us know. ------------------ From: Dan Carpenter <error27(a)gmail.com> commit f1f0abe192a72e75d7c59972e30784d043fd8d73 upstream. __rpc_lookup_create() can return ERR_PTR(-ENOMEM). Signed-off-by: Dan Carpenter <error27(a)gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust(a)netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh(a)suse.de> --- net/sunrpc/rpc_pipe.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -587,6 +587,8 @@ static struct dentry *__rpc_lookup_creat struct dentry *dentry; dentry = __rpc_lookup_create(parent, name); + if (IS_ERR(dentry)) + return dentry; if (dentry->d_inode == NULL) return dentry; dput(dentry); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |