]> www.infradead.org Git - users/hch/misc.git/commit
drm/amd/pm: add missing error handling in function smu_v13_0_6_allocate_dpm_context
authorBob Zhou <bob.zhou@amd.com>
Fri, 31 May 2024 08:21:45 +0000 (16:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 15:25:13 +0000 (11:25 -0400)
commit8332f1aaf571bec1c023a3b13ba35c86aaa2524d
tree78c3c291712a47197db88fdfe1277c8811d72297
parent50151b7f1c79a09117837eb95b76c2de76841dab
drm/amd/pm: add missing error handling in function smu_v13_0_6_allocate_dpm_context

Check return value to avoid null pointer dereference.

Signed-off-by: Bob Zhou <bob.zhou@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c