[PATCH 7/8] test: Fix pointer overrun in dm_test_devm_regmap()

Tom Rini trini at konsulko.com
Fri Apr 29 20:03:46 CEST 2022


On Sun, Apr 03, 2022 at 10:39:14AM +0000, Andrew Scull wrote:

> This tests calls regmap_read() which takes a uint pointer as an output
> parameter. The test was passing a pointer to a u16 which resulted in an
> overflow when the output was written. Fix this by following the
> regmap_read() API and passing a uint pointer instead.
> 
> Signed-off-by: Andrew Scull <ascull at google.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Cc: Jean-Jacques Hiblot <jjhiblot at ti.com>
> Cc: Pratyush Yadav <p.yadav at ti.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220429/c97142e3/attachment.sig>


More information about the U-Boot mailing list