[U-Boot] [PATCH 1/1] i2c: mvtwsi.c: Avoid NULL dereference

Heiko Schocher hs at denx.de
Tue Feb 6 12:44:03 UTC 2018


Hello Heinrich,

Am 31.01.2018 um 00:57 schrieb Heinrich Schuchardt:
> For '#ifndef CONFIG_DM_I2C' twsi_i2c_init() passes NULL as
> 4th parameter to __twsi_i2c_init().
> 
> Identified with cppcheck.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>   drivers/i2c/mvtwsi.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)

Applied to u-boot-i2c master

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list