[PATCH 0/3] fix error routine of exporting dma_buf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



During exporting dma_buf, it can fail after dma_buf is exported. In this case,
exported dma_buf should be release with putting.
Also dma_buf_fd can be failed to get fd, but failure cases are not handled.

Error handling routine is not quite clean, so I send this patch set as RFC.

Seung-Woo Kim (1):
  drm/prime: reorder drm_prime_add_buf_handle and remove prototype

YoungJun Cho (2):
  drm/prime: fix to put an exported dma_buf for adding handle failure
  drm/prime: add return check for dma_buf_fd

 drivers/gpu/drm/drm_prime.c |   79 +++++++++++++++++++++++++++---------------
 1 files changed, 51 insertions(+), 28 deletions(-)

-- 
1.7.4.1

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux