Skip to content
Unverified Commit 01db3d1f authored by Dan Carpenter's avatar Dan Carpenter Committed by Ilpo Järvinen
Browse files

platform/x86/amd/pmc: fix leak in probe()



Call pci_dev_put(rdev) before returning.

Fixes: 6ad1b2dc ("platform/x86/amd/pmc: Use managed APIs for mutex")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/65e2fffb-a1cb-4297-b725-661d6b790a05@stanley.mountain


Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent f895f249
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment