Commit 9d370c24 authored by Huan Yang's avatar Huan Yang Committed by Treehugger Robot
Browse files

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: default avatarHuan Yang <link@vivo.com>
Acked-by: default avatarVivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: default avatarVivek 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: default avatarT.J. Mercier <tjmercier@google.com>
parent 5469e4bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment