[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f5f26a7d-973a-4232-b0cb-b0543fddefe0-pchelkin@ispras.ru>
Date: Sun, 4 Feb 2024 11:54:33 +0300
From: Fedor Pchelkin <pchelkin@...ras.ru>
To: Wolfram Sang <wsa@...nel.org>, Rand Deeb <rand.sec96@...il.com>
Cc: Tali Perry <tali.perry1@...il.com>, lvc-project@...uxtesting.org,
voskresenski.stanislav@...fident.ru, Benjamin Fair <benjaminfair@...gle.com>,
Avi Fishman <avifishman70@...il.com>, Patrick Venture <venture@...gle.com>, openbmc@...ts.ozlabs.org,
linux-kernel@...r.kernel.org, Nancy Yuen <yuenn@...gle.com>, linux-i2c@...r.kernel.org,
deeb.rand@...fident.ru, Tomer Maimon <tmaimon77@...il.com>
Subject: Re: Re: Re: [lvc-project] [PATCH] i2c: Fix NULL pointer dereference
in npcm_i2c_reg_slave
On 24/02/03 09:44PM, Wolfram Sang wrote:
>
> > If I'm not missing something, npcm_i2c_reg_slave() is called via a
> > function pointer ->reg_slave here [1]. And seems `client` can't be NULL
> > there. Other drivers implementing ->reg_slave function don't check its
> > argument.
>
> Correct, we trust ourselves here.
>
> > Maybe we should just drop `if (!bus->slave)` check?
>
> Yes.
>
Okay, thanks for confirmation.
Rand, would you like to prepare the patch, please?
Powered by blists - more mailing lists