Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299423
b: refs/heads/master
c: 6190c79
h: refs/heads/master
i:
  299421: 0f00e62
  299419: 4ae7e5a
  299415: 46c2be9
  299407: 976f21e
  299391: 9b26732
v: v3
  • Loading branch information
Bhupesh Sharma authored and Felipe Balbi committed Apr 10, 2012
1 parent 23db375 commit c18a054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f135617224b4a1113b26b8ee5877e94f38e40d1e
refs/heads/master: 6190c79df861d2c78a7448fe6d4260e5fa53b9b9
4 changes: 1 addition & 3 deletions trunk/drivers/usb/gadget/uvc_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,11 @@ static int uvc_queue_enable(struct uvc_video_queue *queue, int enable)
return ret;
}

/* called with queue->irqlock held.. */
static struct uvc_buffer *
uvc_queue_next_buffer(struct uvc_video_queue *queue, struct uvc_buffer *buf)
{
struct uvc_buffer *nextbuf;
unsigned long flags;

if ((queue->flags & UVC_QUEUE_DROP_INCOMPLETE) &&
buf->buf.length != buf->buf.bytesused) {
Expand All @@ -556,14 +556,12 @@ uvc_queue_next_buffer(struct uvc_video_queue *queue, struct uvc_buffer *buf)
return buf;
}

spin_lock_irqsave(&queue->irqlock, flags);
list_del(&buf->queue);
if (!list_empty(&queue->irqqueue))
nextbuf = list_first_entry(&queue->irqqueue, struct uvc_buffer,
queue);
else
nextbuf = NULL;
spin_unlock_irqrestore(&queue->irqlock, flags);

buf->buf.sequence = queue->sequence++;
do_gettimeofday(&buf->buf.timestamp);
Expand Down

0 comments on commit c18a054

Please sign in to comment.