RE: [PATCH] drm/amdgpu: fix Coverity explicit null dereferenced warnings

2024-07-24 Thread Huang, Tim
[Public] Hi Christian, > -Original Message- > From: Christian König > Sent: Wednesday, July 24, 2024 3:35 PM > To: Huang, Tim ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Koenig, Christian > > Subject: Re: [PATCH] drm/amdgpu: fix Coverity expli

Re: [PATCH] drm/amdgpu: fix Coverity explicit null dereferenced warnings

2024-07-24 Thread Christian König
Am 24.07.24 um 09:06 schrieb Tim Huang: This is to address the Coverity explicit null dereferenced warnings by NULL returns from amdgpu_mes_ctx_get_offs* but without follow-up Checks. Meanwhile refactor the code to keep only one *_get_gpu/cpu_addr. Well nice that you are looking into that, but

[PATCH] drm/amdgpu: fix Coverity explicit null dereferenced warnings

2024-07-24 Thread Tim Huang
This is to address the Coverity explicit null dereferenced warnings by NULL returns from amdgpu_mes_ctx_get_offs* but without follow-up Checks. Meanwhile refactor the code to keep only one *_get_gpu/cpu_addr. Signed-off-by: Tim Huang --- drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 2 +- drivers/