Skip to content
  • Andrew Scull's avatar
    test: Fix pointer overrun in dm_test_devm_regmap() · 7f58feae
    Andrew Scull authored and Tom Rini's avatar Tom Rini committed
    
    
    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: default avatarAndrew Scull <ascull@google.com>
    Cc: Simon Glass <sjg@chromium.org>
    Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
    Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
    Cc: Pratyush Yadav <p.yadav@ti.com>
    Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
    7f58feae