On Wed, Mar 6, 2024 at 5:19 PM Théo Lebrun <theo.lebrun@xxxxxxxxxxx> wrote: > If nmk_gpio_populate_chip() returns an error, avoid deferencing its > return value. > > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Closes: https://lore.kernel.org/linux-gpio/5ee722f8-7582-420d-8477-45be6acde90f@moroto.mountain/ > Signed-off-by: Théo Lebrun <theo.lebrun@xxxxxxxxxxx> > --- > Fix a smatch-reported potential bug. Thanks Dan for the bug report. Patch applied! Yours, Linus Walleij