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

[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

[PATCH] drm/xe/guc: Fix deference after check

2024-10-08 Thread Everest K.C.
is issue was reported by Coverity Scan. Signed-off-by: Everest K.C. --- drivers/gpu/drm/xe/xe_guc_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/xe_guc_log.c b/drivers/gpu/drm/xe/xe_guc_log.c index 7fbc56cceaba..4e1a5e8ba1e3 100644 --- a/drivers/gpu/drm/xe/