Commit 2e54154
drm/amdgpu: Fix potential fence use-after-free v2
fence Decrements the reference count before exiting.
Avoid Race Vulnerabilities for fence use-after-free.
v2 (chk): actually fix the use after free and not just move it.
Signed-off-by: shanzhulig <shanzhulig@gmail.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent b75efe8 commit 2e54154
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
1657 | 1660 | | |
1658 | 1661 | | |
1659 | 1662 | | |
1660 | 1663 | | |
1661 | 1664 | | |
1662 | 1665 | | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | 1666 | | |
1667 | 1667 | | |
1668 | 1668 | | |
| |||
0 commit comments