summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorAndy Shevchenko <andy.shevchenko@gmail.com>2021-05-10 13:01:36 +0300
committerGuenter Roeck <linux@roeck-us.net>2021-05-10 18:02:15 +0300
commit8370e5b093080c03cf89f7ebf0bef6984545429e (patch)
treee2f03ec5d1fe707314dc80dc9edbe4d541498a1f /ipc
parent2d101db3e5be3bbee6001d4227705cec70ecb82e (diff)
downloadlinux-8370e5b093080c03cf89f7ebf0bef6984545429e.tar.xz
hwmon: (ltc2992) Put fwnode in error case during ->probe()
In each iteration fwnode_for_each_available_child_node() bumps a reference counting of a loop variable followed by dropping in on a next iteration, Since in error case the loop is broken, we have to drop a reference count by ourselves. Do it for port_fwnode in error case during ->probe(). Fixes: b0bd407e94b0 ("hwmon: (ltc2992) Add support") Cc: Alexandru Tachici <alexandru.tachici@analog.com> Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20210510100136.3303142-1-andy.shevchenko@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions