summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorRodrigo Siqueira <rodrigo.siqueira@amd.com>2024-05-29 08:57:02 -0600
committerAlex Deucher <alexander.deucher@amd.com>2024-06-14 16:17:17 -0400
commit9d8152cd1be1c1049dc7d70e2f0a01989d1d9a17 (patch)
tree24b4470b71aa58738a7d7e95ab3e26fb3c6a6e33 /scripts/gdb/linux/utils.py
parent7c70e60fbf4bff1123f0e8d5cb1ae71df6164d7f (diff)
drm/amd/display: Check otg_master pointer before use it
Coverity highlighted that the parameter otg_master is referenced before the if condition that validates it, which means that the code might have some attempt to access a null pointer. This commit addresses this issue by moving the pointer verification to the beginning of the function and initializing all the values right after it. Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com> Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions