summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2026-03-10 11:58:22 -0500
committerAlex Deucher <alexander.deucher@amd.com>2026-03-11 13:58:08 -0400
commitfae5984296b981c8cc3acca35b701c1f332a6cd8 (patch)
treef16c4e681d85c85f459d22dbbfb29bd4d0063781 /include/linux/i2c/git@git.tavy.me:linux-stable.git
parentda16822ce5c32b5aca848eaea521936d4410d48c (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>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions