Applied, thanks!

sage


On Tue, 25 Jun 2013, majianpeng wrote:

> Signed-off-by: Jianpeng Ma <[email protected]>
> ---
>  fs/ceph/mds_client.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
> index 4d29203..9fb58f6 100644
> --- a/fs/ceph/mds_client.c
> +++ b/fs/ceph/mds_client.c
> @@ -3040,8 +3040,10 @@ int ceph_mdsc_init(struct ceph_fs_client *fsc)
>       fsc->mdsc = mdsc;
>       mutex_init(&mdsc->mutex);
>       mdsc->mdsmap = kzalloc(sizeof(*mdsc->mdsmap), GFP_NOFS);
> -     if (mdsc->mdsmap == NULL)
> +     if (mdsc->mdsmap == NULL) {
> +             kfree(mdsc);
>               return -ENOMEM;
> +     }
>  
>       init_completion(&mdsc->safe_umount_waiters);
>       init_waitqueue_head(&mdsc->session_close_wq);
> -- 
> 1.8.1.2
> 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to