up(&fh->cap.lock); return POLLERR; 
up(&fh->cap.lock); return POLLERR; 
video_poll(struct file *file, struct poll_table_struct *wait){	struct saa7134_fh *fh = file->private_data;	struct videobuf_buffer *buf = NULL;	if (V4L2_BUF_TYPE_VBI_CAPTURE == fh->type)		return videobuf_poll_stream(file, &fh->vbi, wait);	if (res_check(fh,RESOURCE_VIDEO)) {		if (!list_empty(&fh->cap.stream))			buf = list_entry(fh->cap.stream.next, struct videobuf_buffer, stream);	} else {		down(&fh->cap.lock);		if (UNSET == fh->cap.read_off) {			/* need to capture a new frame */			if (res_locked(fh->dev,RESOURCE_VIDEO)) {				up(&fh->cap.lock);				return POLLERR;			}			if (0 != fh->cap.ops->buf_prepare(&fh->cap,fh->cap.read_buf,fh->cap.field)) {			        up(&fh->cap.lock);			        return POLLERR;			}			fh->cap.ops->buf_queue(&fh->cap,fh->cap.read_buf);			fh->cap.read_off = 0;		}		up(&fh->cap.lock);		buf = fh->cap.read_buf;	}	if (!buf)		return POLLERR;	poll_wait(file, &buf->done, wait);	if (buf->state == STATE_DONE ||	    buf->state == STATE_ERROR)		return POLLIN|POLLRDNORM;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f2421ca3383ed35bc634aa29416a3229dc603fa4/saa7134-video.c/clean/drivers/media/video/saa7134/saa7134-video.c