[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOS58YMffJ4uH02H0TH_DmhtjQOVgz2_u_6HJqsGnR6PQ3ZGzw@mail.gmail.com>
Date: Fri, 23 Dec 2011 14:52:40 -0800
From: Tejun Heo <tj@...nel.org>
To: Li Zefan <lizf@...fujitsu.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Cgroups <cgroups@...r.kernel.org>
Subject: Re: [PATCH] cgroup: move a check to parse_cgroupfs_options()
Hello,
On Thu, Dec 22, 2011 at 7:40 PM, Li Zefan <lizf@...fujitsu.com> wrote:
>> And where did this one go?
>
> The other one I removed sets opts->new_root to NULL, and this one detects
> the NULL ptr:
>
> if (!opts->subsys_bits && !opts->none)
> return NULL;
> ...
> opts->new_root = NULL;
> ...
> if (!opts->new_root)
> return -EINVAL;
>
> shortcut to:
>
> if (!opts->subsys_bits && !opts->none)
> return -EINVAL;
Thanks for the explanation. Maybe explaining it briefly in the commit
message would be nice?
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists