Commit 72ecb1d
drm/amd: Fix a few more NULL pointer dereference in device cleanup
I found a few more paths that cleanup fails due to a NULL version pointer
on unsupported hardware.
Add NULL checks as applicable.
Fixes: 39fc2bc ("drm/amdgpu: Protect GPU register accesses in powergated state in some paths")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit f5a05f8)
Cc: stable@vger.kernel.org1 parent a657104 commit 72ecb1d
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3497 | 3497 | | |
3498 | 3498 | | |
3499 | 3499 | | |
| 3500 | + | |
| 3501 | + | |
3500 | 3502 | | |
3501 | 3503 | | |
3502 | 3504 | | |
| |||
3574 | 3576 | | |
3575 | 3577 | | |
3576 | 3578 | | |
| 3579 | + | |
| 3580 | + | |
3577 | 3581 | | |
3578 | 3582 | | |
3579 | 3583 | | |
| |||
3600 | 3604 | | |
3601 | 3605 | | |
3602 | 3606 | | |
| 3607 | + | |
| 3608 | + | |
3603 | 3609 | | |
3604 | 3610 | | |
3605 | 3611 | | |
| |||
0 commit comments