В ядре Linux устранена следующая уязвимость: staging: media: ipu7: fix pm_runtime refcount leak in ipu7_resume() ipu7_resume() вызывает pm_runtime_get_sync() перед возобновлением устройства. Если резюме PM терпит неудачу, количество пользователей остается увеличенным, но путь ошибки возвращается, не опуская ссылку. Вместо этого используйте pm_runtime_resume_and_get (), который уравновешивает расчет использования на сбой и предотвращает утечку.
Продолжайте возвращать 0 при ошибке, так как обратные вызовы не должны распространяться на ядро PM, что соответствует поведению драйвера ipu6.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: staging: media: ipu7: fix pm_runtime refcount leak in ipu7_resume() ipu7_resume() calls pm_runtime_get_sync() before resuming the device. If the runtime PM resume fails, the usage count remains incremented, but the error path returns without dropping the reference. Use pm_runtime_resume_and_get() instead, which balances the usage count on failure and avoids the leak. Keep returning 0 on error, as resume callbacks should not propagate failures to the PM core, matching the behaviour of the ipu6 driver.