DRM_COPY_FROM_USER_IOCTL(mem, (drm_via_mem_t *) data, sizeof(mem)); 
DRM_COPY_FROM_USER_IOCTL(mem, (drm_via_mem_t __user *) data, sizeof(mem)); 
int via_mem_alloc(DRM_IOCTL_ARGS){	drm_via_mem_t mem;	DRM_COPY_FROM_USER_IOCTL(mem, (drm_via_mem_t *) data, sizeof(mem));	switch (mem.type) {	case VIDEO:		if (via_fb_alloc(&mem) < 0)			return -EFAULT;		DRM_COPY_TO_USER_IOCTL((drm_via_mem_t *) data, mem,				       sizeof(mem));		return 0;	case AGP:		if (via_agp_alloc(&mem) < 0)			return -EFAULT;		DRM_COPY_TO_USER_IOCTL((drm_via_mem_t *) data, mem,				       sizeof(mem));		return 0;	}	return -EFAULT;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/bbaf364103cee15c895e2086723d0ad9ef47ae99/via_mm.c/buggy/drivers/char/drm/via_mm.c