> +static int ec_command(struct cros_ec_dev *ec_dev, int version, int command,
> +                   uint8_t *outdata, int outsize, uint8_t *indata,
> +                   int insize)
> +{

int is a very odd type to use for sizes that cannot be negative,
especially given all your callers use sizeof() which is a size_t and is
not necessarily an int type and you then pass it to memcpy which expects
a size_t anyway


Alan

Reply via email to