Re: [PATCH] amdgpu: assign adev after null check

2022-02-15 Thread Christian König
Am 15.02.22 um 02:59 schrieb Qing Wang: From: Wang Qing adev should be assigned after a null check I would rather remove the NULL check altogether. The caller is supposed to make sure that the context is valid and even if it isn't that's not a recoverable error here. Regards, Christian.

[PATCH] amdgpu: assign adev after null check

2022-02-14 Thread Qing Wang
From: Wang Qing adev should be assigned after a null check Signed-off-by: Wang Qing --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index 2c9