static void vino_capture_stop(struct vino_channel_settings *vcs){	unsigned int incoming = 0, outgoing = 0, id;	unsigned long flags, flags2;	dprintk("vino_capture_stop():\n");	spin_lock_irqsave(&vcs->capture_lock, flags);	/* unset capturing to stop queue processing */	vcs->capturing = 0;	spin_lock_irqsave(&vino_drvdata->vino_lock, flags2);	vino_dma_stop(vcs);	vino_clear_interrupt(vcs);	spin_unlock_irqrestore(&vino_drvdata->vino_lock, flags2);	/* remove all items from the queue */	if (vino_queue_get_incoming(&vcs->fb_queue, &incoming)) {		dprintk("vino_capture_stop(): "			"vino_queue_get_incoming() failed\n");		goto out;	}	while (incoming > 0) {		vino_queue_transfer(&vcs->fb_queue);		if (vino_queue_get_incoming(&vcs->fb_queue, &incoming)) {			dprintk("vino_capture_stop(): "				"vino_queue_get_incoming() failed\n");			goto out;		}	}	if (vino_queue_get_outgoing(&vcs->fb_queue, &outgoing)) {		dprintk("vino_capture_stop(): "			"vino_queue_get_outgoing() failed\n");		goto out;	}	while (outgoing > 0) {		vino_queue_remove(&vcs->fb_queue, &id);		if (vino_queue_get_outgoing(&vcs->fb_queue, &outgoing)) {			dprintk("vino_capture_stop(): "				"vino_queue_get_outgoing() failed\n");			goto out;		}	}out:	spin_unlock_irqrestore(&vcs->capture_lock, flags);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a637a114f36b94a1ad8b9867f43bac0414958420/vino.c/buggy/drivers/media/video/vino.c