Hi, > +/* Helper function to check I2C-transferred data. */ I assume I2C is just one of the first users and other users like SPI will be implemented as time passes? Otherwise I would wonder why I2C needs to be handled with this special function. > +void kmsan_handle_i2c_transfer(struct i2c_msg *msgs, int num) > +{ > + int i; > + > + if (!msgs) > + return; Can go. You call this function from __i2c_transfer and this checks for valid 'msgs'. Kind regards, Wolfram
Attachment:
signature.asc
Description: PGP signature