Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 54164
Collapse All | Expand All

(-)linux-2.4.26-grsec-2.0/drivers/i2c/i2c-core.c (-1 / +1 lines)
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) */

Return to bug 54164