Re: [PATCH] drm/efidrm: ensure screen_base is initialized

2025-04-11 Thread Thomas Zimmermann
Hi Arnd Am 11.04.25 um 15:11 schrieb Javier Martinez Canillas: Arnd Bergmann writes: Hello Arnd, From: Arnd Bergmann Thanks for the fix. clang points out that there is a code path that leads to undefined behavior: drivers/gpu/drm/sysfb/efidrm.c:353:11: error: variable 'screen_base' is

Re: [PATCH] drm/efidrm: ensure screen_base is initialized

2025-04-11 Thread Javier Martinez Canillas
Arnd Bergmann writes: Hello Arnd, > From: Arnd Bergmann > > clang points out that there is a code path that leads to undefined behavior: > > drivers/gpu/drm/sysfb/efidrm.c:353:11: error: variable 'screen_base' is used > uninitialized whenever 'if' condition is false > [-Werror,-Wsometimes-uni

[PATCH] drm/efidrm: ensure screen_base is initialized

2025-04-11 Thread Arnd Bergmann
From: Arnd Bergmann clang points out that there is a code path that leads to undefined behavior: drivers/gpu/drm/sysfb/efidrm.c:353:11: error: variable 'screen_base' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] 353 | else if (mem_flags &