Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754975Ab0A0AI7 (ORCPT ); Tue, 26 Jan 2010 19:08:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753923Ab0A0AI5 (ORCPT ); Tue, 26 Jan 2010 19:08:57 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:37521 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753913Ab0A0AI4 (ORCPT ); Tue, 26 Jan 2010 19:08:56 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Wed, 27 Jan 2010 09:05:31 +0900 From: KAMEZAWA Hiroyuki To: Paul Menage Cc: Li Zefan , Andrew Morton , LKML , "containers@lists.osdl.org" Subject: Re: [PATCH 1/2] cgroups: Fix to return errno in a failure path Message-Id: <20100127090531.546f8bea.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <6599ad831001261501q2e6e54bckebb3d2d225ecc126@mail.gmail.com> References: <4B5EA4EC.8020700@cn.fujitsu.com> <6599ad831001261501q2e6e54bckebb3d2d225ecc126@mail.gmail.com> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1768 Lines: 47 On Tue, 26 Jan 2010 15:01:26 -0800 Paul Menage wrote: > On Tue, Jan 26, 2010 at 12:16 AM, Li Zefan wrote: > > > > Signed-off-by: Li Zefan > > Acked-by: Paul Menage > Thank you. Acked-by: KAMEZAWA Hiroyuki > > --- > >  cgroup.c |    7 +++++-- > >  1 file changed, 5 insertions(+), 2 deletions(-) > > > > --- a/kernel/cgroup.c.orig      2010-01-19 16:37:37.000000000 +0800 > > +++ a/kernel/cgroup.c   2010-01-19 16:39:07.000000000 +0800 > > @@ -3279,14 +3279,17 @@ static long cgroup_create(struct cgroup > > > >        for_each_subsys(root, ss) { > >                struct cgroup_subsys_state *css = ss->create(ss, cgrp); > > + > >                if (IS_ERR(css)) { > >                        err = PTR_ERR(css); > >                        goto err_destroy; > >                } > >                init_cgroup_css(css, ss, cgrp); > > -               if (ss->use_id) > > -                       if (alloc_css_id(ss, parent, cgrp)) > > +               if (ss->use_id) { > > +                       err = alloc_css_id(ss, parent, cgrp); > > +                       if (err) > >                                goto err_destroy; > > +               } > >                /* At error, ->destroy() callback has to free assigned ID. */ > >        } > > > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/