Re: [ceph-devel] [patch] ceph: handle kmalloc() failure

2010-03-20 Thread Sage Weil
On Sat, 20 Mar 2010, Dan Carpenter wrote: > Return ERR_PTR(-ENOMEM) if kmalloc() fails. We handle allocation > failures the same way later in the function. > > Signed-off-by: Dan Carpenter > > diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c > index a260010..655b005 100644 > --- a/fs/

[ceph-devel] [patch] ceph: handle kmalloc() failure

2010-03-20 Thread Dan Carpenter
Return ERR_PTR(-ENOMEM) if kmalloc() fails. We handle allocation failures the same way later in the function. Signed-off-by: Dan Carpenter diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index a260010..655b005 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -328,6 +328