mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
w1_therm_read_bin: don't call flush_signals()
This can disrupt userspace signal management. Signed-off-by: Evgeniy Polyakov <[email protected]> Cc: Roland McGrath <[email protected]> Cc: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a66e356c04
commit
33e44b1588
1 changed files with 1 additions and 5 deletions
|
|
@ -191,11 +191,7 @@ static ssize_t w1_therm_read_bin(struct kobject *kobj, char *buf, loff_t off, si
|
|||
|
||||
w1_write_8(dev, W1_CONVERT_TEMP);
|
||||
|
||||
while (tm) {
|
||||
tm = msleep_interruptible(tm);
|
||||
if (signal_pending(current))
|
||||
flush_signals(current);
|
||||
}
|
||||
msleep(tm);
|
||||
|
||||
if (!w1_reset_select_slave(sl)) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue