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

Simon Glass sjg at chromium.org
Mon Apr 11 20:35:32 CEST 2022


On Sun, 3 Apr 2022 at 04:39, Andrew Scull <ascull at google.com> 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>
> ---
>  test/dm/regmap.c | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list