err = drm_addmap( dev, map.offset, map.size, map.type, map.flags, &map_ptr ); 
err = drm_addmap(dev, map.offset, map.size, map.type, map.flags, &map_ptr); 
int drm_addmap_ioctl(struct inode *inode, struct file *filp,		     unsigned int cmd, unsigned long arg){	drm_file_t *priv = filp->private_data;	drm_device_t *dev = priv->head->dev;	drm_map_t map;	drm_map_t *map_ptr;	drm_map_t __user *argp = (void __user *)arg;	int err;	if (!(filp->f_mode & 3))		return -EACCES;	/* Require read/write */	if (copy_from_user(& map, argp, sizeof(map))) {		return -EFAULT;	}	err = drm_addmap( dev, map.offset, map.size, map.type, map.flags,			  &map_ptr );	if (err) {		return err;	}	if (copy_to_user(argp, map_ptr, sizeof(*map_ptr)))		return -EFAULT;	if (map_ptr->type != _DRM_SHM) {		if (copy_to_user(&argp->handle, &map_ptr->offset,				 sizeof(map_ptr->offset)))			return -EFAULT;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/d1f2b55ad2c11f46e30547a9f7754e99b478348e/drm_bufs.c/buggy/drivers/char/drm/drm_bufs.c