request for 4.14-stable: 07bd14ccc304 ("hwmon: (lm80) Fix missing unlock on error in set_fan_div()")
Subsystems (2)
Hi Greg,
This was not marked for stable but the commit which it fixes is in stable.
Please apply to your queue of 4.14-stable.
--
Regards
Sudip
From f32d692377ac234158dbcbb393d0b32a3c8980df Mon Sep 17 00:00:00 2001
From: Wei Yongjun <[email protected]>
Date: Wed, 26 Dec 2018 11:28:24 +0000
Subject: [PATCH] hwmon: (lm80) Fix missing unlock on error in set_fan_div()
commit 07bd14ccc3049f9c0147a91a4227a571f981601a upstream
Add the missing unlock before return from function set_fan_div() in the error handling case.
--- drivers/hwmon/lm80.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/hwmon/lm80.c +3 -1
@@ -393,8 +393,10 @@ static ssize_t set_fan_div(struct device *dev, struct device_attribute *attr, } rv =lm80_read_value (client,LM80_REG_FANDIV ); -if (rv <0 ) +if (rv <0 ) { +mutex_unlock (&data->update_lock);return rv; + } reg = (rv & ~(3 << (2 * (nr +1 )))) | (data->fan_div[nr] << (2 * (nr +1 )));lm80_write_value (client,LM80_REG_FANDIV , reg);
Signature · 1 line
2.11.0
Quoted 5 lines · Sudip Mukherjee
Hi Greg,
This was not marked for stable but the commit which it fixes is in stable.
Please apply to your queue of 4.14-stable.
Queued, thank you.
--
Thanks,
Sasha
Greg Kroah-Hartman
maintainerQuoted 8 lines · Sasha Levin
Quoted 5 lines · Sudip Mukherjee
Hi Greg,
This was not marked for stable but the commit which it fixes is in stable.
Please apply to your queue of 4.14-stable.Queued, thank you.
You added this to 4.4.y, 4.9.y, and 4.20.y queues, but forgot 4.19.y and 3.18.y. Any specific reason?
thanks,
greg k-h
Greg Kroah-Hartman
maintainerQuoted 4 lines · Greg Kroah-Hartman
Quoted 3 lines · Sasha Levin
Quoted 2 lines · Sudip Mukherjee
Hi Greg,
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
This was not marked for stable but the commit which it fixes is in stable.
Please apply to your queue of 4.14-stable.Queued, thank you.
You added this to 4.4.y, 4.9.y, and 4.20.y queues, but forgot 4.19.y and 3.18.y. Any specific reason?
You also added it to 4.14.y, missed that one.