[PATCH] i2c: imx-lpi2c: fix type char overflow issue when calculating the clock cycle

Wolfram Sang wsa at kernel.org
Fri Jun 23 01:14:05 PDT 2023


On Mon, May 29, 2023 at 04:02:51PM +0800, carlos.song at nxp.com wrote:
> From: Clark Wang <xiaoning.wang at nxp.com>
> 
> Claim clkhi and clklo as integer type to avoid possible calculation
> errors caused by data overflow.
> 
> Fixes: a55fa9d0e42e ("i2c: imx-lpi2c: add low power i2c bus driver")
> Signed-off-by: Clark Wang <xiaoning.wang at nxp.com>
> Signed-off-by: Carlos Song <carlos.song at nxp.com>

Applied to for-current, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230623/e393c218/attachment.sig>


More information about the linux-arm-kernel mailing list