Re: [PATCH][next] drm/xe/guc: Fix dereference before Null check

2024-10-09 Thread Everest K.C.
On Wed, Oct 9, 2024 at 2:35 PM Dan Carpenter wrote: > > On Wed, Oct 09, 2024 at 12:49:49PM -0600, Everest K.C. wrote: > > The pointer list->list was derefrenced before the Null check > > resulting in possibility of Null pointer derefrencing. > > This patch moves the Null check outside the for loop

Re: [PATCH][next] drm/xe/guc: Fix dereference before Null check

2024-10-09 Thread Dan Carpenter
On Wed, Oct 09, 2024 at 12:49:49PM -0600, Everest K.C. wrote: > The pointer list->list was derefrenced before the Null check > resulting in possibility of Null pointer derefrencing. > This patch moves the Null check outside the for loop, so that > the check is performed before the derefrencing. >

[PATCH][next] drm/xe/guc: Fix dereference before Null check

2024-10-09 Thread Everest K.C.
The pointer list->list was derefrenced before the Null check resulting in possibility of Null pointer derefrencing. This patch moves the Null check outside the for loop, so that the check is performed before the derefrencing. This issue was reported by Coverity Scan. Signed-off-by: Everest K.C.