Re: [Xen-devel][PATCH 2/2] xen/gntdev: Check and release imported dma-bufs on close

From: Juergen Gross
Date: Sun Feb 17 2019 - 05:41:44 EST


On 14/02/2019 15:23, Oleksandr Andrushchenko wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>
> Check if there are any imported dma-bufs left not released by
> user-space when grant device's release callback is called and
> free those if this is the case. This can happen if user-space
> leaks the buffers because of a bug or application has been
> terminated for any reason.
>
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>

Applied-to: xen/tip.git for-linus-5.1


Juergen