]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: amd-pmc: put device on error paths
authorPan Bian <bianpan2016@163.com>
Thu, 21 Jan 2021 04:50:05 +0000 (20:50 -0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 2 Feb 2021 18:33:44 +0000 (19:33 +0100)
commitea780515c01a0d36707ad9fd65006a3ae280b9c8
tree8a895e5e2f981e1e20f841327c11971dbbfa0f36
parent58b4406699bfbab29ad364c6f06bd0f8812b511b
platform/x86: amd-pmc: put device on error paths

Put the PCI device rdev on error paths to fix potential reference count
leaks.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210121045005.73342-1-bianpan2016@163.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c