diff options
| author | Andi Shyti <[email protected]> | 2024-06-17 18:42:42 +0000 |
|---|---|---|
| committer | Andi Shyti <[email protected]> | 2024-06-20 06:19:21 +0000 |
| commit | 3bece98b9eb6941b4708237a4557a5082df25589 (patch) | |
| tree | 0486be6c512015f36e64319800f2be1ef0e8242b /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/i915/gt: Fix potential UAF by revoke of fence registers (diff) | |
| download | kernel-3bece98b9eb6941b4708237a4557a5082df25589.tar.gz kernel-3bece98b9eb6941b4708237a4557a5082df25589.zip | |
drm/i915/gem: Return NULL instead of '0'
Commit 05da7d9f717b ("drm/i915/gem: Downgrade stolen lmem setup
warning") returns '0' from i915_gem_stolen_lmem_setup(), but it's
supposed to return a pointer to the intel_memory_region
structure.
Sparse complains with the following message:
>> drivers/gpu/drm/i915/gem/i915_gem_stolen.c:943:32: sparse: sparse:
Using plain integer as NULL pointer
Return NULL.
Signed-off-by: Andi Shyti <[email protected]>
Cc: Jonathan Cavitt <[email protected]>
Reviewed-by: Jonathan Cavitt <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
