Miaoqian Lin
8f92817b6f
cpufreq: nforce2: fix reference count leak in nforce2
...
commit 9600156bb9 upstream.
There are two reference count leaks in this driver:
1. In nforce2_fsb_read(): pci_get_subsys() increases the reference count
of the PCI device, but pci_dev_put() is never called to release it,
thus leaking the reference.
2. In nforce2_detect_chipset(): pci_get_subsys() gets a reference to the
nforce2_dev which is stored in a global variable, but the reference
is never released when the module is unloaded.
Fix both by:
- Adding pci_dev_put(nforce2_sub5) in nforce2_fsb_read() after reading
the configuration.
- Adding pci_dev_put(nforce2_dev) in nforce2_exit() to release the
global device reference.
Found via static analysis.
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Signed-off-by: Miaoqian Lin <linmq006@gmail.com >
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2026-01-02 12:57:15 +01:00
..
2025-09-15 21:43:31 +02:00
2025-08-11 12:19:20 +05:30
2025-04-10 11:58:38 +02:00
2021-12-30 18:51:39 +01:00
2025-03-06 13:01:25 -06:00
2025-05-27 16:48:47 -07:00
2025-12-18 14:02:55 +01:00
2025-05-05 12:07:42 -05:00
2025-04-10 10:07:32 +05:30
2025-07-02 12:08:16 +05:30
2025-08-11 12:19:29 +05:30
2025-02-07 09:45:11 +05:30
2025-08-29 11:28:27 +05:30
2025-10-01 13:57:13 +02:00
2025-09-10 12:20:10 +02:00
2022-02-04 19:22:34 +01:00
2025-02-20 20:27:19 +01:00
2022-04-13 15:22:41 +02:00
2025-09-10 12:25:08 +02:00
2025-09-10 12:25:08 +02:00
2020-11-10 18:31:17 +01:00
2020-11-10 18:31:17 +01:00
2023-10-24 22:02:06 +02:00
2025-06-18 21:33:01 +02:00
2026-01-02 12:56:39 +01:00
2025-10-01 13:56:24 +02:00
2025-07-09 13:41:33 +05:30
2026-01-02 12:57:15 +01:00
2025-09-24 21:32:28 +02:00
2025-02-07 09:45:12 +05:30
2025-04-10 11:58:33 +02:00
2025-05-02 10:23:47 +02:00
2025-09-23 17:16:56 +02:00
2020-01-27 10:33:33 +01:00
2022-09-26 11:15:04 +05:30
2025-10-01 13:56:24 +02:00
2024-10-28 12:24:39 +01:00
2025-11-12 17:59:37 +01:00
2025-05-20 11:21:11 +05:30
2025-07-09 13:41:58 +05:30
2025-02-26 21:15:09 +05:30
2025-02-17 18:09:31 +00:00
2025-02-07 09:45:12 +05:30
2025-09-01 10:50:28 +05:30
2019-05-30 11:26:39 -07:00
2020-03-24 21:31:27 +01:00
2025-02-07 09:45:12 +05:30
2025-02-07 09:45:15 +05:30
2025-07-21 16:40:56 -04:00
2025-10-01 13:56:24 +02:00
2025-09-29 14:40:46 +05:30
2025-03-17 11:29:18 +05:30
2025-02-07 09:45:12 +05:30
2025-02-07 09:45:12 +05:30
2025-02-07 09:45:12 +05:30
2024-10-28 12:24:39 +01:00
2025-02-07 09:45:13 +05:30
2025-02-07 09:45:13 +05:30
2025-02-07 09:45:13 +05:30
2025-04-10 11:58:33 +02:00
2019-05-30 11:26:39 -07:00
2025-05-11 17:54:05 -07:00
2019-06-05 17:37:08 +02:00
2025-07-21 16:40:56 -04:00
2025-07-21 16:40:56 -04:00
2022-05-07 22:55:49 +02:00
2022-05-07 22:55:49 +02:00
2025-03-17 11:29:18 +05:30
2025-08-11 12:30:46 +05:30
2025-02-07 09:45:13 +05:30
2024-10-28 12:24:39 +01:00
2025-10-01 13:59:28 +02:00
2025-01-23 20:47:32 +01:00
2026-01-02 12:56:39 +01:00
2023-01-12 10:53:12 +01:00
2025-05-02 10:23:47 +02:00
2025-10-01 13:56:24 +02:00
2025-10-01 13:56:24 +02:00
2025-09-05 20:16:55 +02:00
2024-12-24 09:48:58 +05:30
2024-12-24 09:48:58 +05:30
2025-10-01 13:56:24 +02:00
2025-02-07 09:45:14 +05:30
2025-02-07 09:45:14 +05:30
2025-09-05 20:28:46 +02:00
2025-09-05 20:28:46 +02:00
2025-02-07 09:45:14 +05:30
2024-08-07 12:11:45 +05:30
2025-04-08 11:35:30 +05:30
2023-04-27 10:09:05 -07:00
2025-07-15 08:37:35 +05:30
2025-09-29 14:55:50 +05:30
2025-02-07 09:45:14 +05:30
2025-08-22 12:24:13 +05:30
2025-02-07 09:45:14 +05:30
2025-09-05 20:16:55 +02:00