Back

MEDIUM

i2c: sprd: fix reference leak when pm_runtime_get_sync fails

Published Feb 28, 2024

Description

The PM reference count is not expected to be incremented on return in sprd_i2c_master_xfer() and sprd_i2c_remove().

However, pm_runtime_get_sync will increment the PM reference count even failed. Forgetting to putting operation will result in a reference leak here.

Replace it with pm_runtime_resume_and_get to keep usage counter balanced.

Affected products

Remediation

No remediation recorded yet.

Metrics

Weaknesses (1)

References (10)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Feb 28, 2024
Updated May 11, 2026
Reserved Feb 26, 2024
CISA Vulnrichment
Updated Mar 4, 2024
NVD
Status Analyzed
Modified Jun 17, 2026
Red Hat
Severity Low
Public date Feb 28, 2024