mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
The qm_get_qos_value() function calls bus_find_device_by_name() which
increases the device reference count, but fails to call put_device()
to balance the reference count and lead to a device reference leak.
Add put_device() calls in both the error path and success path to
properly balance the reference count.
Found via static analysis.
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| hpre | ||
| sec | ||
| sec2 | ||
| trng | ||
| zip | ||
| debugfs.c | ||
| Kconfig | ||
| Makefile | ||
| qm.c | ||
| qm_common.h | ||
| sgl.c | ||