renderonly: close transfer prime_fd
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 27 Apr 2017 16:44:01 +0000 (18:44 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 2 May 2017 20:19:19 +0000 (22:19 +0200)
commitab51cd2f26496500d52f6b2847291d884f711bc2
tree065af843f6aa3a0056d1d72c0842ac6518527d5a
parent09034aab64c7a6022a2c508658fead1442f08576
renderonly: close transfer prime_fd

prime_fd is only used to transfer the scanout buffer to the GPU inside
renderonly_create_kms_dumb_buffer_for_resource. It should be closed
immediately to avoid leaking the DMA-BUF file handle.

Fixes: 848b49b288f ("gallium: add renderonly library")
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/auxiliary/renderonly/renderonly.c