summaryrefslogtreecommitdiff
path: root/scripts/include
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-10-13 15:20:24 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:02:52 +0100
commita9c9e2289d53e0d8753f3e835790fb64d4eebbe1 (patch)
treed0b25165171177596f8c99642fa367b03e63f96c /scripts/include
parent9b8904b53b5ace0519c74cd89fc3ca763f3856d4 (diff)
downloadlinux-a9c9e2289d53e0d8753f3e835790fb64d4eebbe1.tar.gz
linux-a9c9e2289d53e0d8753f3e835790fb64d4eebbe1.tar.bz2
linux-a9c9e2289d53e0d8753f3e835790fb64d4eebbe1.zip
platform/chrome: cros_ec_typec: fix missing fwnode reference decrement
commit 9c41f371457bd9a24874e3c7934d9745e87fbc58 upstream. The device_for_each_child_node() macro requires explicit calls to fwnode_handle_put() upon early exits (return, break, goto) to decrement the fwnode's refcount, and avoid levaing a node reference behind. Add the missing fwnode_handle_put() after the common label for all error paths. Cc: stable@vger.kernel.org Fixes: fdc6b21e2444 ("platform/chrome: Add Type C connector class driver") Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://lore.kernel.org/r/20241013-cross_ec_typec_fwnode_handle_put-v2-1-9182b2cd7767@gmail.com Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/include')
0 files changed, 0 insertions, 0 deletions