View | Details | Raw Unified
Collapse All | Expand All

(-) linux-2.4.28/drivers/char/moxa.c (-2 / +2 lines)
 Lines 1771-1776    Link Here 
		return -EFAULT;
		return -EFAULT;
	if(dltmp.cardno < 0 || dltmp.cardno >= MAX_BOARDS)
	if(dltmp.cardno < 0 || dltmp.cardno >= MAX_BOARDS)
		return -EINVAL;
		return -EINVAL;
	if(dltmp.len < 0 || dltmp.len > sizeof(moxaBuff))
		return -EINVAL;
	switch(cmd)
	switch(cmd)
	{
	{
 Lines 2927-2934    Link Here 
	unsigned long baseAddr;
	unsigned long baseAddr;
	int i;
	int i;
	if(len > sizeof(moxaBuff))
		return -EINVAL;
	if(copy_from_user(moxaBuff, tmp, len))
	if(copy_from_user(moxaBuff, tmp, len))
		return -EFAULT;
		return -EFAULT;
	baseAddr = moxaBaseAddr[cardno];
	baseAddr = moxaBaseAddr[cardno];
(-) linux-2.4.28/drivers/char/random.c (-1 / +1 lines)
 Lines 1787-1793    Link Here 
			     void *oldval, size_t *oldlenp,
			     void *oldval, size_t *oldlenp,
			     void *newval, size_t newlen, void **context)
			     void *newval, size_t newlen, void **context)
{
{
	int	len;
	size_t	len;
	
	
	sysctl_poolsize = random_state->poolinfo.POOLBYTES;
	sysctl_poolsize = random_state->poolinfo.POOLBYTES;