Re: [PATCH] cgroup: minor tweak for logic to get cgroup css

From: Roman Gushchin
Date: Mon Jul 08 2019 - 13:30:48 EST


On Mon, Jul 08, 2019 at 09:42:43AM -0700, Tejun Heo wrote:
> On Wed, Jul 03, 2019 at 10:07:49AM +0800, Peng Wang wrote:
> > We could only handle the case that css exists
> > and css_try_get_online() fails.
>
> As css_tryget_online() can't handle NULL input, this is a bug fix.
> Can you please clarify that in the description?

- if (!css || !css_tryget_online(css))
+ if (css && !css_tryget_online(css))

If css == NULL, !css is true, and the second part of the || statement
will not be evaluated. So it's not a bug fix.

Thanks!