diff options
author | Samson Tam <[email protected]> | 2023-10-06 17:36:16 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-10-26 19:00:31 -0400 |
commit | 8d0f4cd2ae44ebe50ff85a49fb248e64f28b6d66 (patch) | |
tree | be5c48cb48d4415852c6a2571011c1c1069f8a3e /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | f583db812bc9a97384303761932768e44d1d92a3 (diff) |
drm/amd/display: add null check for invalid opps
[Why]
In cases where number of pipes available is less
than num_opp, there will opp instances that are
null
[How]
Add null check to skip over these opp instances
Fixes: 40de8403b998 ("drm/amd/display: Update OPP counter from new interface")
Reviewed-by: Alvin Lee <[email protected]>
Acked-by: Roman Li <[email protected]>
Signed-off-by: Samson Tam <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions