diff options
author | Alex Hung <alex.hung@amd.com> | 2024-06-07 00:42:36 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-06-28 00:10:37 +0300 |
commit | e1f4805bcc6b39e1c249777c237e419705266234 (patch) | |
tree | a82c30948860e18dfc328abb123693a954814946 /drivers/regulator/mc13xxx.h | |
parent | 0dd1190faff7f7b389291266e118deb381b6c8d9 (diff) | |
download | linux-e1f4805bcc6b39e1c249777c237e419705266234.tar.xz |
drm/amd/display: Add null checks before accessing struct elements
[WHAT]
1. is_pwrseq0 needs to check link before accessing link->link_index.
2. context is checked before accessing its bw_ctx.dml2
3. clk_mgr_base->bw_params is checked before clk_table.num_entries_per_cl
This fixes 4 REVERSE_INULL issues reported by Coverity.
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/regulator/mc13xxx.h')
0 files changed, 0 insertions, 0 deletions