diff options
| author | Javier Carrasco <[email protected]> | 2024-10-13 13:20:24 +0000 |
|---|---|---|
| committer | Tzung-Bi Shih <[email protected]> | 2024-10-14 03:32:52 +0000 |
| commit | 9c41f371457bd9a24874e3c7934d9745e87fbc58 (patch) | |
| tree | b0d3817bdb5ddb68b290645389f5eb246b95a46d /drivers/platform/x86/intel/pmt/class.c | |
| parent | platform/chrome: Drop explicit initialization of struct i2c_device_id::driver... (diff) | |
| download | kernel-9c41f371457bd9a24874e3c7934d9745e87fbc58.tar.gz kernel-9c41f371457bd9a24874e3c7934d9745e87fbc58.zip | |
platform/chrome: cros_ec_typec: fix missing fwnode reference decrement
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: [email protected]
Fixes: fdc6b21e2444 ("platform/chrome: Add Type C connector class driver")
Signed-off-by: Javier Carrasco <[email protected]>
Link: https://lore.kernel.org/r/20241013-cross_ec_typec_fwnode_handle_put-v2-1-9182b2cd7767@gmail.com
Signed-off-by: Tzung-Bi Shih <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
