Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336065
b: refs/heads/master
c: f1cccca
h: refs/heads/master
i:
  336063: 4f81279
v: v3
  • Loading branch information
Wei Yongjun authored and Mauro Carvalho Chehab committed Nov 22, 2012
1 parent 6052802 commit 1012f15
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: 6a3082adc85a3acc9258ad2e4858abc55be9b514
refs/heads/master: f1ccccaf23132a2eda036dd3978ebe3f020c5af9
8 changes: 6 additions & 2 deletions trunk/drivers/media/platform/soc_camera/mx2_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,10 @@ static int mx2_start_streaming(struct vb2_queue *q, unsigned int count)

bytesperline = soc_mbus_bytes_per_line(icd->user_width,
icd->current_fmt->host_fmt);
if (bytesperline < 0)
if (bytesperline < 0) {
spin_unlock_irqrestore(&pcdev->lock, flags);
return bytesperline;
}

/*
* I didn't manage to properly enable/disable the prp
Expand All @@ -878,8 +880,10 @@ static int mx2_start_streaming(struct vb2_queue *q, unsigned int count)
pcdev->discard_buffer = dma_alloc_coherent(ici->v4l2_dev.dev,
pcdev->discard_size, &pcdev->discard_buffer_dma,
GFP_KERNEL);
if (!pcdev->discard_buffer)
if (!pcdev->discard_buffer) {
spin_unlock_irqrestore(&pcdev->lock, flags);
return -ENOMEM;
}

pcdev->buf_discard[0].discard = true;
list_add_tail(&pcdev->buf_discard[0].queue,
Expand Down

0 comments on commit 1012f15

Please sign in to comment.