]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dma-buf: Move code out of mutex-protected section in dma_buf_attach()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 26 Jan 2012 11:27:25 +0000 (12:27 +0100)
committerSumit Semwal <sumit.semwal@ti.com>
Thu, 26 Jan 2012 17:10:39 +0000 (22:40 +0530)
commit27f730ae85cf43cbacf4f81103f987db3d5679a2
treed81d1be696971d5a2fdb8a6a5e159fc7efdc3ca3
parent615103add715717a1cc17e237d64dec38e622610
dma-buf: Move code out of mutex-protected section in dma_buf_attach()

Some fields can be set without mutex protection. Initialize them before
locking the mutex.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/base/dma-buf.c