kernel_samsung_a53x/drivers/platform/chrome
Javier Carrasco d3f967d6c6 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>
2024-12-17 13:24:19 +01:00
..
wilco_ec Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chromeos_laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chromeos_pstore.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chromeos_tbmc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_chardev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_debugfs.c platform/chrome: cros_ec_debugfs: fix wrong EC message version 2024-11-23 23:19:56 +01:00
cros_ec_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_ishtp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_lightbar.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_lpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_lpc_mec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_lpc_mec.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_proto.c platform/chrome: cros_ec_proto: Lock device when updating MKBP version 2024-11-23 23:20:20 +01:00
cros_ec_rpmsg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_sensorhub.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_sensorhub_ring.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_sensorhub_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_typec.c platform/chrome: cros_ec_typec: fix missing fwnode reference decrement 2024-12-17 13:24:19 +01:00
cros_ec_vbc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_kbd_led_backlight.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_usbpd_logger.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_usbpd_notify.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00