[patch] ceph: ceph_mdsc_build_path() returns an ERR_PTR

2010-08-26 Thread Dan Carpenter
ceph_mdsc_build_path() returns an ERR_PTR but this code is set up to handle NULL returns. Signed-off-by: Dan Carpenter erro...@gmail.com diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 360c4f2..6fd8b20 100644 --- a/fs/ceph/debugfs.c +++ b/fs/ceph/debugfs.c @@ -171,6 +171,8 @@ static int

Re: [patch] ceph: ceph_mdsc_build_path() returns an ERR_PTR

2010-08-26 Thread Sage Weil
Applied, thanks! sage On Thu, 26 Aug 2010, Dan Carpenter wrote: ceph_mdsc_build_path() returns an ERR_PTR but this code is set up to handle NULL returns. Signed-off-by: Dan Carpenter erro...@gmail.com diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 360c4f2..6fd8b20 100644 ---

Re: [patch] ceph: fix get_ticket_handler() error handling

2010-08-26 Thread Sage Weil
Applied, thanks! sage On Thu, 26 Aug 2010, Dan Carpenter wrote: get_ticket_handler() returns a valid pointer or it returns ERR_PTR(-ENOMEM) if kzalloc() fails. Signed-off-by: Dan Carpenter erro...@gmail.com diff --git a/fs/ceph/auth_x.c b/fs/ceph/auth_x.c index 582e0b2..a2d002c 100644