"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd: i2c: fix coverity issue

coverity scan reported issue:
** CID 583415: Integer handling issues (INTEGER_OVERFLOW)
/cmd/i2c.c: 369 in do_i2c_write()

change the length variable into type int.

Signed-off-by: Heiko Schocher <hs@denx.de>

+2 -1
+2 -1
cmd/i2c.c
··· 299 299 char *const argv[]) 300 300 { 301 301 uint chip; 302 - uint devaddr, length; 302 + uint devaddr; 303 + int length; 303 304 int alen; 304 305 u_char *memaddr; 305 306 int ret;