Re: [PATCH] drm/ast: Avoid possible NULL dereference

2023-08-21 Thread Su Hui
On 2023/8/21 15:04, Christophe JAILLET wrote: Le 21/08/2023 à 08:22, Su Hui a écrit : smatch error: drivers/gpu/drm/ast/ast_dp501.c:227 ast_launch_m68k() error: we previously assumed 'ast->dp501_fw' could be null (see line 223) when "!ast->dp501_fw" and "ast_load_dp501_microcode(dev) >= 0" is t

Re: [PATCH] drm/ast: Avoid possible NULL dereference

2023-08-21 Thread Christophe JAILLET
Le 21/08/2023 à 08:22, Su Hui a écrit : smatch error: drivers/gpu/drm/ast/ast_dp501.c:227 ast_launch_m68k() error: we previously assumed 'ast->dp501_fw' could be null (see line 223) when "!ast->dp501_fw" and "ast_load_dp501_microcode(dev) >= 0" is true, there will be a NULL dereference of 'ast->

[PATCH] drm/ast: Avoid possible NULL dereference

2023-08-20 Thread Su Hui
smatch error: drivers/gpu/drm/ast/ast_dp501.c:227 ast_launch_m68k() error: we previously assumed 'ast->dp501_fw' could be null (see line 223) when "!ast->dp501_fw" and "ast_load_dp501_microcode(dev) >= 0" is true, there will be a NULL dereference of 'ast->dp501_fw'. Fixes: 12f8030e05c6 ("drm/ast: