[PATCH] i2c: lpi2c: fix potential read of uninitialized variable
Sascha Hauer
s.hauer at pengutronix.de
Fri Oct 18 01:54:44 PDT 2024
On Thu, 17 Oct 2024 11:09:47 +0200, Ahmad Fatoum wrote:
> If the continue statement in the do {} while () loop is
> reached on the first iteration, the loop condition is evaluated without
> having first being set.
>
> Fix this by initializing it to the maximum length of the I2C message.
>
>
> [...]
Applied, thanks!
[1/1] i2c: lpi2c: fix potential read of uninitialized variable
https://git.pengutronix.de/cgit/barebox/commit/?id=502ce2e332f5 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list