Lines 625-631
ssize_t i2cproc_bus_read(struct file * f
Link Here
|
625 |
size_t len_total; |
625 |
size_t len_total; |
626 |
int order[I2C_CLIENT_MAX]; |
626 |
int order[I2C_CLIENT_MAX]; |
627 |
|
627 |
|
628 |
if (count > 4000) |
628 |
if ((count > 4000) || (count < 0)) |
629 |
return -EINVAL; |
629 |
return -EINVAL; |
630 |
len_total = file->f_pos + count; |
630 |
len_total = file->f_pos + count; |
631 |
/* Too bad if this gets longer (unlikely) */ |
631 |
/* Too bad if this gets longer (unlikely) */ |