Commit 6146081
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 44f3356 commit 6146081
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1424 | 1424 | | |
1425 | 1425 | | |
1426 | 1426 | | |
1427 | | - | |
| 1427 | + | |
| 1428 | + | |
1428 | 1429 | | |
1429 | | - | |
| 1430 | + | |
| 1431 | + | |
1430 | 1432 | | |
1431 | 1433 | | |
1432 | 1434 | | |
| |||
1441 | 1443 | | |
1442 | 1444 | | |
1443 | 1445 | | |
1444 | | - | |
| 1446 | + | |
| 1447 | + | |
1445 | 1448 | | |
1446 | | - | |
| 1449 | + | |
| 1450 | + | |
1447 | 1451 | | |
1448 | 1452 | | |
1449 | 1453 | | |
| |||
0 commit comments