diff options
| author | Mario Limonciello <mario.limonciello@amd.com> | 2026-03-10 11:58:22 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-03-11 14:04:08 -0400 |
| commit | 3646ff28780b4c52c5b5081443199e7a430110e5 (patch) | |
| tree | 4f6ab7fc0d8b809de3fb50a3b85beaefd253e5cf /include/linux | |
| parent | 2ce75a0b7e1bfddbcb9bc8aeb2e5e7fa99971acf (diff) | |
drm/amd: Set num IP blocks to 0 if discovery fails
If discovery has failed for any reason (such as no support for a block)
then there is no need to unwind all the IP blocks in fini. In this
condition there can actually be failures during the unwind too.
Reset num_ip_blocks to zero during failure path and skip the unnecessary
cleanup path.
Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit fae5984296b981c8cc3acca35b701c1f332a6cd8)
Cc: stable@vger.kernel.org
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
