Changeset 3615
- Timestamp:
- 03/03/02 18:37:44 (11 years ago)
- Files:
-
- 1 modified
-
i2c/trunk/kernel/i2c-core.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/kernel/i2c-core.c
r3607 r3615 657 657 int order[I2C_CLIENT_MAX]; 658 658 659 if (count > 40 00)659 if (count > 4096) 660 660 return -EINVAL; 661 661 len_total = file->f_pos + count; 662 662 /* Too bad if this gets longer (unlikely) */ 663 if (len_total > 40 00)664 len_total = 40 00;663 if (len_total > 4096) 664 len_total = 4096; 665 665 for (i = 0; i < I2C_ADAP_MAX; i++) 666 666 if (adapters[i]->inode == inode->i_ino) {
