[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdavngGcP43APeXuJzn75nt=_0rzj1E3+nk0E1Qr6BVKJA@mail.gmail.com>
Date: Fri, 23 Aug 2024 18:05:30 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Ma Ke <make24@...as.ac.cn>
Cc: tony@...mide.com, haojian.zhuang@...aro.org,
linux-arm-kernel@...ts.infradead.org, linux-omap@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH] pinctrl: single: fix potential NULL dereference in pcs_get_function()
On Thu, Aug 8, 2024 at 6:14 AM Ma Ke <make24@...as.ac.cn> wrote:
> pinmux_generic_get_function() can return NULL and the pointer 'function'
> was dereferenced without checking against NULL. Add checking of pointer
> 'function' in pcs_get_function().
>
> Found by code review.
>
> Cc: stable@...r.kernel.org
> Fixes: 571aec4df5b7 ("pinctrl: single: Use generic pinmux helpers for managing functions")
> Signed-off-by: Ma Ke <make24@...as.ac.cn>
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists