title: spi: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware()
description: In the Linux kernel, the following vulnerability has been resolved:
spi: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware()
pm_runtime_get_sync will increment pm usage counter even it failed.
Forgetting to putting operation will result in reference leak here.
Fix it by replacing it with pm_runtime_resume_and_get to keep usage
counter balanced.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 944c01a889d9, lessThan: 4a01ad002d2e, status: affected, versionType: git
version: 944c01a889d9, lessThan: ce02e58ddf86, status: affected, versionType: git
version: 944c01a889d9, lessThan: b8207bfc539c, status: affected, versionType: git
version: 944c01a889d9, lessThan: 6a2b5cee0d31, status: affected, versionType: git
version: 944c01a889d9, lessThan: a03675497970, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 5.2, status: affected
version: 0, lessThan: 5.2, status: unaffected, versionType: custom
version: 5.4.119, lessThanOrEqual: 5.4.*, status: unaffected, versionType: custom
version: 5.10.37, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.11.21, lessThanOrEqual: 5.11.*, status: unaffected, versionType: custom
version: 5.12.4, lessThanOrEqual: 5.12.*, status: unaffected, versionType: custom
version: 5.13, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
