diff options
| author | Joe Hattori <[email protected]> | 2024-12-16 02:25:38 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2024-12-17 16:21:45 +0000 |
| commit | 185e1b1d91e419445d3fd99c1c0376a970438acf (patch) | |
| tree | e6f852a1097dce4240a82bce3f8cd0c667804bfd /drivers/platform/x86/intel/pmt/class.c | |
| parent | platform/x86/intel/vsec: Add support for Panther Lake (diff) | |
| download | kernel-185e1b1d91e419445d3fd99c1c0376a970438acf.tar.gz kernel-185e1b1d91e419445d3fd99c1c0376a970438acf.zip | |
platform/x86: mlx-platform: call pci_dev_put() to balance the refcount
mlxplat_pci_fpga_device_init() calls pci_get_device() but does not
release the refcount on error path. Call pci_dev_put() on the error path
and in mlxplat_pci_fpga_device_exit() to fix this.
This bug was found by an experimental static analysis tool that I am
developing.
Fixes: 02daa222fbdd ("platform: mellanox: Add initial support for PCIe based programming logic device")
Signed-off-by: Joe Hattori <[email protected]>
Reviewed-by: Vadim Pasternak <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
