lkml.org 
[lkml]   [2010]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[083/156] sunrpc: handle allocation errors from __rpc_lookup_create()
    2.6.33-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Dan Carpenter <error27@gmail.com>

    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 | 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);



    \
     
     \ /
      Last update: 2010-03-31 01:43    [W:5.083 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site