[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1733244772.936156.1570005835848@webmail.strato.com>
Date: Wed, 2 Oct 2019 10:43:55 +0200 (CEST)
From: Ulrich Hecht <uli@...nd.eu>
To: Fabien Parent <fparent@...libre.com>, linux-i2c@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: drinkcat@...omium.org, wsa@...-dreams.de, hsinyi@...omium.org,
matthias.bgg@...il.com, tglx@...utronix.de, qii.wang@...iatek.com
Subject: Re: [PATCH v2] i2c: i2c-mt65xx: fix NULL ptr dereference
> On September 30, 2019 at 5:28 PM Fabien Parent <fparent@...libre.com> wrote:
>
>
> Since commit abf4923e97c3 ("i2c: mediatek: disable zero-length transfers
> for mt8183"), there is a NULL pointer dereference for all the SoCs
> that don't have any quirk. mtk_i2c_functionality is not checking that
> the quirks pointer is not NULL before starting to use it.
>
> This commit add a call to i2c_check_quirks which will check whether
> the quirks pointer is set, and if so will check if the IP has the
> NO_ZERO_LEN quirk.
>
> Fixes: abf4923e97c3 ("i2c: mediatek: disable zero-length transfers for mt8183")
> Signed-off-by: Fabien Parent <fparent@...libre.com>
Thank you! Tested successfully on Acer R13 Chromebook (mt8173).
Tested-by: Ulrich Hecht <uli@...nd.eu>
CU
Uli
Powered by blists - more mailing lists