title: power: supply: rk817: Fix node refcount leak
description: In the Linux kernel, the following vulnerability has been resolved:
power: supply: rk817: Fix node refcount leak
Dan Carpenter reports that the Smatch static checker warning has found
that there is another refcount leak in the probe function. While
of_node_put() was added in one of the return paths, it should in
fact be added for ALL return paths that return an error and at driver
removal time.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 7d1e3961725e, lessThan: fe6406238d5a, status: affected, versionType: git
version: 54c03bfd094f, lessThan: 70326b46b6a0, status: affected, versionType: git
version: 54c03bfd094f, lessThan: 488ef44c068e, 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: 6.2, status: affected
version: 0, lessThan: 6.2, status: unaffected, versionType: custom
version: 6.1.56, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.5.6, lessThanOrEqual: 6.5.*, status: unaffected, versionType: custom
version: 6.6, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
