View | Details | Raw Unified
Collapse All | Expand All

(-) rt2570-1.1.0+cvs20050930.orig/Module/rtusb_info.c (-1 / +1 lines)
 Lines 4150-4156    Link Here 
		case SIOCGIWPRIV:
		case SIOCGIWPRIV:
			if (wrq->u.data.pointer) {
			if (wrq->u.data.pointer) {
				if ( verify_area(VERIFY_WRITE, wrq->u.data.pointer, sizeof(privtab)) )
				if ( access_ok(VERIFY_WRITE, wrq->u.data.pointer, sizeof(privtab)) )
					break;
					break;
				wrq->u.data.length = sizeof(privtab) / sizeof(privtab[0]);
				wrq->u.data.length = sizeof(privtab) / sizeof(privtab[0]);
				if (copy_to_user(wrq->u.data.pointer, privtab, sizeof(privtab)))
				if (copy_to_user(wrq->u.data.pointer, privtab, sizeof(privtab)))