diff options
Diffstat (limited to 'drivers/usb/gadget/function/uvc_queue.c')
| -rw-r--r-- | drivers/usb/gadget/function/uvc_queue.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/uvc_queue.c b/drivers/usb/gadget/function/uvc_queue.c index d25edc3d2174..951934aa4454 100644 --- a/drivers/usb/gadget/function/uvc_queue.c +++ b/drivers/usb/gadget/function/uvc_queue.c @@ -104,7 +104,8 @@ static void uvc_buffer_queue(struct vb2_buffer *vb)  	if (likely(!(queue->flags & UVC_QUEUE_DISCONNECTED))) {  		list_add_tail(&buf->queue, &queue->irqqueue);  	} else { -		/* If the device is disconnected return the buffer to userspace +		/* +		 * If the device is disconnected return the buffer to userspace  		 * directly. The next QBUF call will fail with -ENODEV.  		 */  		buf->state = UVC_BUF_STATE_ERROR; @@ -255,7 +256,8 @@ void uvcg_queue_cancel(struct uvc_video_queue *queue, int disconnect)  	}  	queue->buf_used = 0; -	/* This must be protected by the irqlock spinlock to avoid race +	/* +	 * This must be protected by the irqlock spinlock to avoid race  	 * conditions between uvc_queue_buffer and the disconnection event that  	 * could result in an interruptible wait in uvc_dequeue_buffer. Do not  	 * blindly replace this logic by checking for the UVC_DEV_DISCONNECTED  | 
