Commit 621ddff
drm/amdgpu: fix gart.bo pin_count leak
[ Upstream commit 6680576 ]
gmc_v{9,10}_0_gart_disable() isn't called matched with
correspoding gart_enbale function in SRIOV case. This will
lead to gart.bo pin_count leak on driver unload.
Cc: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Leslie Shi <Yuliang.Shi@amd.com>
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent a5ba615 commit 621ddff
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
1021 | 1023 | | |
1022 | 1024 | | |
1023 | 1025 | | |
| |||
1026 | 1028 | | |
1027 | 1029 | | |
1028 | 1030 | | |
1029 | | - | |
1030 | 1031 | | |
1031 | 1032 | | |
1032 | 1033 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
| 1680 | + | |
| 1681 | + | |
1680 | 1682 | | |
1681 | 1683 | | |
1682 | 1684 | | |
| |||
1685 | 1687 | | |
1686 | 1688 | | |
1687 | 1689 | | |
1688 | | - | |
1689 | 1690 | | |
1690 | 1691 | | |
1691 | 1692 | | |
| |||
0 commit comments