linux/drivers/net/mctp
Matt Johnston 33f5d1a9d9 mctp i2c: Fix hard head TX bounds length check
We should be testing the length before fitting into the u8 byte_count.
This is just a sanity check, the MCTP stack should have limited to MTU
which is checked, and we check consistency later in mctp_i2c_xmit().

Found by Smatch
mctp_i2c_header_create() warn: impossible condition
    '(hdr->byte_count > 255) => (0-255 > 255)'

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-02-25 22:23:33 -08:00
..
Kconfig mctp i2c: MCTP I2C binding driver 2022-02-19 16:18:49 +00:00
Makefile mctp i2c: MCTP I2C binding driver 2022-02-19 16:18:49 +00:00
mctp-i2c.c mctp i2c: Fix hard head TX bounds length check 2022-02-25 22:23:33 -08:00
mctp-serial.c mctp: serial: Cancel pending work from ndo_uninit handler 2022-02-11 14:39:54 -08:00