RE: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-18 Thread Zhu, Rex
org > Subject: Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer > > Am 18.09.2018 um 11:27 schrieb Zhu, Rex: > > > >> -Original Message- > >> From: Koenig, Christian > >> Sent: Tuesday, September 18, 2018 4:41 PM > >> T

Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-18 Thread Christian König
Am 18.09.2018 um 11:27 schrieb Zhu, Rex: -Original Message- From: Koenig, Christian Sent: Tuesday, September 18, 2018 4:41 PM To: Zhu, Rex ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer Am 18.09.2018 um 10:16 schrieb Zhu

RE: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-18 Thread Zhu, Rex
> -Original Message- > From: Koenig, Christian > Sent: Tuesday, September 18, 2018 4:41 PM > To: Zhu, Rex ; amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer > > Am 18.09.2018 um 10:16 schrieb Zhu, Rex: >

Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-18 Thread Christian König
Am 18.09.2018 um 10:16 schrieb Zhu, Rex: -Original Message- From: Christian König Sent: Tuesday, September 18, 2018 3:14 PM To: Zhu, Rex ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer Am 18.09.2018 um 08:16 schrieb Zhu

RE: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-18 Thread Zhu, Rex
> -Original Message- > From: Christian König > Sent: Tuesday, September 18, 2018 3:14 PM > To: Zhu, Rex ; amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer > > Am 18.09.2018 um 08:16 schrieb Zhu, Rex: >

Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-18 Thread Christian König
Am 17.09.2018 um 20:41 schrieb James Zhu: On 2018-09-17 02:07 PM, Christian König wrote: Don't try to unreserve a BO we doesn't allocated. Fixes: 07012fdd497e drm/amdgpu: don't allocate zero sized kernel BOs Signed-off-by: Christian König ---   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3

Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-18 Thread Christian König
Am 18.09.2018 um 08:16 schrieb Zhu, Rex: -Original Message- From: amd-gfx On Behalf Of Christian König Sent: Tuesday, September 18, 2018 2:07 AM To: amd-gfx@lists.freedesktop.org Subject: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer Don't try to unreserve a BO

RE: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-17 Thread Zhu, Rex
> -Original Message- > From: amd-gfx On Behalf Of > Christian König > Sent: Tuesday, September 18, 2018 2:07 AM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer > > Don't try to unreserve a B

Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-17 Thread Huang Rui
On Mon, Sep 17, 2018 at 08:07:24PM +0200, Christian König wrote: > Don't try to unreserve a BO we doesn't allocated. > > Fixes: 07012fdd497e drm/amdgpu: don't allocate zero sized kernel BOs > > Signed-off-by: Christian König If we set size as 0 while create bo, the bo_ptr will be NULL after tha

Re: [PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-17 Thread James Zhu
On 2018-09-17 02:07 PM, Christian König wrote: Don't try to unreserve a BO we doesn't allocated. Fixes: 07012fdd497e drm/amdgpu: don't allocate zero sized kernel BOs Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 d

[PATCH] drm/amdgpu: don't try to unreserve NULL pointer

2018-09-17 Thread Christian König
Don't try to unreserve a BO we doesn't allocated. Fixes: 07012fdd497e drm/amdgpu: don't allocate zero sized kernel BOs Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/a