Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297192
b: refs/heads/master
c: a9fbc3b
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Pinchart authored and Sumit Semwal committed Mar 19, 2012
1 parent dea7b5a commit 3018b1a
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: d1aa06a1eaf5f751c9913703031d611599d8d3d7
refs/heads/master: a9fbc3b73127efba9276e172daa8d122f0fac1a8
4 changes: 1 addition & 3 deletions trunk/drivers/base/dma-buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,

attach = kzalloc(sizeof(struct dma_buf_attachment), GFP_KERNEL);
if (attach == NULL)
goto err_alloc;
return ERR_PTR(-ENOMEM);

mutex_lock(&dmabuf->lock);

Expand All @@ -206,8 +206,6 @@ struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
mutex_unlock(&dmabuf->lock);
return attach;

err_alloc:
return ERR_PTR(-ENOMEM);
err_attach:
kfree(attach);
mutex_unlock(&dmabuf->lock);
Expand Down

0 comments on commit 3018b1a

Please sign in to comment.