em28xx_videodbg("mmap: rename page map failed"); 
em28xx_videodbg("mmap: rename page map failed\n"); 
static int em28xx_v4l2_mmap(struct file *filp, struct vm_area_struct *vma){	unsigned long size = vma->vm_end - vma->vm_start,	    start = vma->vm_start, pos, page;	u32 i;	struct em28xx *dev = filp->private_data;	if (down_interruptible(&dev->fileop_lock))		return -ERESTARTSYS;	if (dev->state & DEV_DISCONNECTED) {		em28xx_videodbg("mmap: device not present");		up(&dev->fileop_lock);		return -ENODEV;	}	if (dev->state & DEV_MISCONFIGURED) {		em28xx_videodbg ("mmap: Device is misconfigured; close and "						"open it again");		up(&dev->fileop_lock);		return -EIO;	}	if (dev->io != IO_MMAP || !(vma->vm_flags & VM_WRITE) ||	    size != PAGE_ALIGN(dev->frame[0].buf.length)) {		up(&dev->fileop_lock);		return -EINVAL;	}	for (i = 0; i < dev->num_frames; i++) {		if ((dev->frame[i].buf.m.offset >> PAGE_SHIFT) == vma->vm_pgoff)			break;	}	if (i == dev->num_frames) {		em28xx_videodbg("mmap: user supplied mapping address is out of range");		up(&dev->fileop_lock);		return -EINVAL;	}	/* VM_IO is eventually going to replace PageReserved altogether */	vma->vm_flags |= VM_IO;	vma->vm_flags |= VM_RESERVED;	/* avoid to swap out this VMA */	pos = (unsigned long)dev->frame[i].bufmem;	while (size > 0) {	/* size is page-aligned */		page = vmalloc_to_pfn((void *)pos);		if (remap_pfn_range(vma, start, page, PAGE_SIZE,				    vma->vm_page_prot)) {			em28xx_videodbg("mmap: rename page map failed");			up(&dev->fileop_lock);			return -EAGAIN;		}		start += PAGE_SIZE;		pos += PAGE_SIZE;		size -= PAGE_SIZE;	}	vma->vm_ops = &em28xx_vm_ops;	vma->vm_private_data = &dev->frame[i];	em28xx_vm_open(vma);	up(&dev->fileop_lock);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/eac94356c8f9f7d3854ed0290a406b13bfe8df4c/em28xx-video.c/buggy/drivers/media/video/em28xx/em28xx-video.c