drm/amd/amdgpu: Avoid fault when allocating an empty buffer object
Subsystems (2)
PATCH 1/1 drm/amd/amdgpu: Avoid fault when allocating an empty buffer object
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +2 -1
@@ -348,7 +348,8 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev,if (r)return r; -amdgpu_bo_unreserve (*bo_ptr); +if (*bo_ptr) +amdgpu_bo_unreserve (*bo_ptr);return 0 ; }
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Christian König
Reviewed-byAm 17.09.2018 um 20:07 schrieb Tom St Denis:
Quoted 1 line
Signed-off-by Tom St Denis <[email protected]>
You was faster than me :)
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c int amdgpu_bo_create_kernel(struct amdgpu_device *adev, · line 355
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +2
-1@@ -348,7 +348,8 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev,if (r)return r; -amdgpu_bo_unreserve (*bo_ptr); +if (*bo_ptr) +amdgpu_bo_unreserve (*bo_ptr);return 0 ; }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 9d13625d-f0da-cf16-2e0a-78db28dc7a1a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Quoted 6 lines · Christian König
Am 17.09.2018 um 20:07 schrieb Tom St Denis:
Quoted 1 line
Signed-off-by Tom St Denis <[email protected]>Reviewed-by Christian König <[email protected]>You was faster than me :)
Been a while since I got a patch on the kernel side... need to keep up numbers :-)
Tom
Quoted 5 lines
Quoted 5 lines
---
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c| 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 14 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c int amdgpu_bo_create_kernel(struct amdgpu_device · line 354
Quoted 13 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +2
-1@@ -348,7 +348,8 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev, if (r) return r; - amdgpu_bo_unreserve(*bo_ptr); + if (*bo_ptr) + amdgpu_bo_unreserve(*bo_ptr); return 0; }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Huang Rui
Reviewed-byQuoted 1 line · Tom St Denis
Signed-off-by Tom St Denis <[email protected]>
Quoted 25 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +2
-1@@ -348,7 +348,8 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev,if (r)return r; -amdgpu_bo_unreserve (*bo_ptr); +if (*bo_ptr) +amdgpu_bo_unreserve (*bo_ptr);return 0 ; }Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx