[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdYtiyHgvtPJYxq2BNb9UxthwPQPHyUddQ5Q1eat1NY4XQ@mail.gmail.com>
Date: Tue, 12 Mar 2024 12:52:42 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: Bartosz Golaszewski <brgl@...ev.pl>, linux-arm-kernel@...ts.infradead.org,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] gpio: nomadik: remove BUG_ON() in nmk_gpio_populate_chip()
On Mon, Mar 11, 2024 at 12:00 PM Dan Carpenter <dan.carpenter@...aro.org> wrote:
> Using BUG_ON() is discouraged and also the check wasn't done early
> enough to prevent an out of bounds access. Check earlier and return
> an error instead of calling BUG().
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
Thanks Dan, I applied the patch to the pin control tree since the
rest of the stuff is resting there and Bartosz already sent his pull
request.
Yours,
Linus Walleij
Powered by blists - more mailing lists