mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create()
[ Upstream commit25e6373a5b] - fix variable ('attr') dereferenced issue. - using condition check instead of BUG_ON(). Fixes:4e01847c38("drm/amdgpu: optimize amdgpu device attribute code") Cc: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
32e0609273
commit
76c3ad1244
1 changed files with 7 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue