RE: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference

2022-08-26 Thread Russell, Kent
[AMD Official Use Only - General] > -Original Message- > From: Ghannam, Yazen > Sent: Friday, August 26, 2022 11:20 AM > To: Russell, Kent > Cc: Lazar, Lijo ; amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference &

Re: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference

2022-08-26 Thread Yazen Ghannam
On Thu, Aug 25, 2022 at 08:54:46AM -0400, Russell, Kent wrote: > [AMD Official Use Only - General] > > It does indeed short-circuit on || (If the left side of an || statement is > not 0, it doesn't evaluate the right side and returns true). So we can ignore > this patch, since checking for each

RE: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference

2022-08-25 Thread Russell, Kent
riginal Message- From: Lazar, Lijo Sent: Thursday, August 25, 2022 8:34 AM To: Russell, Kent ; amd-gfx@lists.freedesktop.org Cc: Ghannam, Yazen Subject: Re: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference On 8/25/2022 5:16 PM, Russell, Kent wrote: > [AMD Official Use Only - G

RE: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference

2022-08-25 Thread Russell, Kent
34 AM To: Russell, Kent ; amd-gfx@lists.freedesktop.org Cc: Ghannam, Yazen Subject: Re: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference On 8/25/2022 5:16 PM, Russell, Kent wrote: > [AMD Official Use Only - General] > > Friendly ping > Wonder how it goes any further wh

Re: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference

2022-08-25 Thread Lazar, Lijo
On 8/25/2022 5:16 PM, Russell, Kent wrote: [AMD Official Use Only - General] Friendly ping Wonder how it goes any further when m is NULL. It should do shortcut evaluation and return NOTIFY_DONE, right? Or is this for better readability? Thanks, Lijo Kent -Original Message-

RE: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference

2022-08-25 Thread Russell, Kent
[AMD Official Use Only - General] Friendly ping Kent -Original Message- From: Russell, Kent Sent: Monday, August 15, 2022 11:31 AM To: amd-gfx@lists.freedesktop.org Cc: Ghannam, Yazen ; Russell, Kent Subject: [PATCH] drm/amdgpu: Handle potential NULL pointer dereference If m is NULL