Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219513
b: refs/heads/master
c: 29adc2c
h: refs/heads/master
i:
  219511: ba91448
v: v3
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Oct 23, 2010
1 parent 257cb51 commit 7203a4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: aa55f3a46fe799b3c8396c57f4b4074252f635da
refs/heads/master: 29adc2c06fd7aa0a26135d8c96afd1cef9e6700b
11 changes: 7 additions & 4 deletions trunk/drivers/media/video/s5p-fimc/fimc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1320,16 +1320,18 @@ static int fimc_m2m_open(struct file *file)
* is already opened.
*/
if (fimc->vid_cap.refcnt > 0) {
mutex_unlock(&fimc->lock);
return -EBUSY;
err = -EBUSY;
goto err_unlock;
}

fimc->m2m.refcnt++;
set_bit(ST_OUTDMA_RUN, &fimc->state);

ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
if (!ctx)
return -ENOMEM;
if (!ctx) {
err = -ENOMEM;
goto err_unlock;
}

file->private_data = ctx;
ctx->fimc_dev = fimc;
Expand All @@ -1349,6 +1351,7 @@ static int fimc_m2m_open(struct file *file)
kfree(ctx);
}

err_unlock:
mutex_unlock(&fimc->lock);
return err;
}
Expand Down

0 comments on commit 7203a4c

Please sign in to comment.