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>
Mon, 19 Mar 2012 10:12:15 +0000 (15:42 +0530)
commit2ed9201bdd9a8e462d768a838fb2bc944c6887a4
treeb205a540211ba7461c82c641c0131e39b11818e3
parenta9fbc3b73127efba9276e172daa8d122f0fac1a8
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