[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200628182015.GA1274@ninjato>
Date: Sun, 28 Jun 2020 20:20:15 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Måns Rullgård <mans@...sr.com>
Cc: linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i2c: core: check returned size of emulated smbus block
read
> I saw it with the mv64xxx (Allwinner) and omap (Beaglebone) drivers.
> From a quick look, it seems like quite a few others have the same
> problem.
Okay, well, to be fair, both drivers don't advertise
I2C_SMBUS_BLOCK_DATA. The client driver should check for that. Anyhow,
it makes sense to have your additional check in the core as fallback
safety.
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists