Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 42024 | Differences between
and this patch

Collapse All | Expand All

(-)linux-2.4.25-pre4/drivers/usb/vicam.c (-3 / +10 lines)
Lines 601-612 Link Here
601
	case VIDIOCSWIN:
601
	case VIDIOCSWIN:
602
		{
602
		{
603
603
604
			struct video_window *vw = (struct video_window *) arg;
604
			struct video_window vw;
605
			DBG("VIDIOCSWIN %d x %d\n", vw->width, vw->height);
606
605
607
			if ( vw->width != 320 || vw->height != 240 )
606
			if (copy_from_user(&vw, arg, sizeof(vw)))
607
			{
608
				retval = -EFAULT;
608
				retval = -EFAULT;
609
				break;
610
			}
611
612
			DBG("VIDIOCSWIN %d x %d\n", vw->width, vw->height);
609
			
613
			
614
			if ( vw.width != 320 || vw.height != 240 )
615
				retval = -EFAULT;
616
610
			break;
617
			break;
611
		}
618
		}
612
619

Return to bug 42024