Skip to content

amdgpu: Check whether pointer is valid

Luben Tuikov requested to merge ltuikov/drm:luben-work into master

In amdgpu_bo_cpu_map() check if the caller has set the pointer to a pointer argument named "cpu" before assigning to it.

Sometimes it is useful to use this function to map a bo, without immediately needing its CPU pointer, like this:

res = amdgpu_bo_cpu_map(bo, NULL);

Signed-off-by: Luben Tuikov luben.tuikov@amd.com

Merge request reports

Loading