Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261601
b: refs/heads/master
c: cb74cf5
h: refs/heads/master
i:
  261599: edc0e6a
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 58325a6 commit db70afe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 7dfff95366f48bf66f77c17cdc9ebd8be696ac5d
refs/heads/master: cb74cf5349a6a9225bbab278a808d5a0739c3b2c
8 changes: 6 additions & 2 deletions trunk/drivers/media/video/sh_mobile_ceu_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,12 @@ static void sh_mobile_ceu_videobuf_release(struct vb2_buffer *vb)
pcdev->active = NULL;
}

/* Doesn't hurt also if the list is empty */
list_del_init(&buf->queue);
/*
* Doesn't hurt also if the list is empty, but it hurts, if queuing the
* buffer failed, and .buf_init() hasn't been called
*/
if (buf->queue.next)
list_del_init(&buf->queue);

spin_unlock_irq(&pcdev->lock);
}
Expand Down

0 comments on commit db70afe

Please sign in to comment.