Commit 8157750
drm/amdgpu: Add NULL checks for function pointers
Check if function is implemented before making the call.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 6fce23a commit 8157750
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1423 | 1423 | | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | | - | |
| 1426 | + | |
| 1427 | + | |
1427 | 1428 | | |
1428 | | - | |
| 1429 | + | |
| 1430 | + | |
1429 | 1431 | | |
1430 | 1432 | | |
1431 | 1433 | | |
| |||
1440 | 1442 | | |
1441 | 1443 | | |
1442 | 1444 | | |
1443 | | - | |
| 1445 | + | |
| 1446 | + | |
1444 | 1447 | | |
1445 | | - | |
| 1448 | + | |
| 1449 | + | |
1446 | 1450 | | |
1447 | 1451 | | |
1448 | 1452 | | |
| |||
0 commit comments