Re: [PATCH] hwmon: (ina3221) Fix reference count leak in ina3221_write_enable

2020-06-14 Thread Guenter Roeck
On 6/13/20 8:38 PM, Aditya Pakki wrote: > ina3221_write_enable() calls pm_runtime_get_sync() that increments > the reference counter. In case of failure, decrement the reference > count and return the error. > > Signed-off-by: Aditya Pakki > --- > drivers/hwmon/ina3221.c | 1 + > 1 file

[PATCH] hwmon: (ina3221) Fix reference count leak in ina3221_write_enable

2020-06-13 Thread Aditya Pakki
ina3221_write_enable() calls pm_runtime_get_sync() that increments the reference counter. In case of failure, decrement the reference count and return the error. Signed-off-by: Aditya Pakki --- drivers/hwmon/ina3221.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwmon/ina3221.c