[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdYhsnRSOgdrDKp7BNqE4TpY3r--cPByFMsq0VRRjW-sAA@mail.gmail.com>
Date: Wed, 16 Oct 2024 21:31:21 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Colin Ian King <colin.i.king@...il.com>, Kees Cook <kees@...nel.org>
Cc: Drew Fustini <drew@...7.com>, Guo Ren <guoren@...nel.org>, Fu Wei <wefu@...hat.com>,
Emil Renner Berthing <emil.renner.berthing@...onical.com>, linux-riscv@...ts.infradead.org,
linux-gpio@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] pinctrl: th1520: Fix potential null pointer
dereference on func
On Wed, Oct 16, 2024 at 5:56 PM Colin Ian King <colin.i.king@...il.com> wrote:
> The initialization of muxtype deferences pointer func before func
> is sanity checked with a null pointer check, hence we have a null
> pointer deference issue. Fix this by only deferencing func with
> the assignment to muxtype after func has been null pointer checked.
>
> Fixes: 1fc30cd92770 ("pinctrl: th1520: Factor out casts")
> Signed-off-by: Colin Ian King <colin.i.king@...il.com>
Patch applied, added Reported-by Kees since he mailed about this too.
Yours,
Linus Walleij
Powered by blists - more mailing lists