RE: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

Zengtao (B)
2019-03-30T02:33:25Z

>-----Original Message-----
>From: Dan Carpenter [mailto:dan.carpenter@oracle.com]
>Sent: Friday, March 29, 2019 7:03 PM
>To: Zengtao (B) <prime.zeng@hisilicon.com>
>Cc: labbott@redhat.com; sumit.semwal@linaro.org;
>devel@driverdev.osuosl.org; Todd Kjos <tkjos@android.com>; Greg
>Kroah-Hartman <gregkh@linuxfoundation.org>;
>linux-kernel@vger.kernel.org; dri-devel@lists.freedesktop.org;
>linaro-mm-sig@lists.linaro.org; Arve Hjønnevåg <arve@android.com>;
>Joel Fernandes <joel@joelfernandes.org>; Martijn Coenen
><maco@android.com>; Christian Brauner <christian@brauner.io>
>Subject: Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel
>driver use
>
>If we're going to export ion_alloc() for other drivers to use then let's make
>an ion_free() helper function as well.
>

Good catch, thanks.

Regards
Zengtao

>void ion_free(struct dma_buf *dmabuf)
>{
> dma_buf_put(dmabuf);
>}
>
>regards,
>dan carpenter