[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZyjKJXfqKkiqWAmYoqLW5i28HTaRRsx_a1jk076cJdmg@mail.gmail.com>
Date: Tue, 27 Mar 2018 15:14:01 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: Bamvor Jian Zhang <bamvor.zhangjian@...aro.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] gpio: mockup: fix a potential crash when creating debugfs entries
On Sun, Mar 4, 2018 at 1:45 PM, Bartosz Golaszewski <brgl@...ev.pl> wrote:
> If we failed to create the top debugfs directory, we must not try to
> create the child nodes. We currently only check if gpio_mockup_dbg_dir
> is not NULL, but it can also contain an errno if debugfs is disabled
> in build options. Use IS_ERR_OR_NULL() instead.
>
> Signed-off-by: Bartosz Golaszewski <brgl@...ev.pl>
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists