Commit 158b920
drm/amd/display: add null check
[WHY]
Prevents null pointer dereferences to enhance function robustness
[HOW]
Adds early null check and return false if invalid.
Reviewed-by: Cruise Hung <cruise.hung@amd.com>
Signed-off-by: Peichen Huang <PeiChen.Huang@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 38b2096 commit 158b920
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6398 | 6398 | | |
6399 | 6399 | | |
6400 | 6400 | | |
6401 | | - | |
| 6401 | + | |
6402 | 6402 | | |
6403 | | - | |
| 6403 | + | |
6404 | 6404 | | |
6405 | 6405 | | |
| 6406 | + | |
| 6407 | + | |
6406 | 6408 | | |
6407 | 6409 | | |
6408 | 6410 | | |
| |||
0 commit comments