UPSTREAM: udmabuf: introduce udmabuf init and deinit helper
After udmabuf is allocated, its resources need to be initialized, including various array structures. The current array structure has already been greatly expanded. Also, before udmabuf needs to be kfree, the occupied resources need to be released. This part is repetitive and maybe overlooked. This patch give a helper function when init and deinit, by this, reduce duplicate code. Change-Id: Ie1d84abf42481869ceaf9efb3ce4dfa8983af884 Signed-off-by:Huan Yang <link@vivo.com> Acked-by:
Vivek Kasireddy <vivek.kasireddy@intel.com> Signed-off-by:
Vivek Kasireddy <vivek.kasireddy@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240918025238.2957823-6-link@vivo.com (cherry picked from commit 5d815796) Bug: 389839576 Signed-off-by:
T.J. Mercier <tjmercier@google.com>
Loading
Please sign in to comment