mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-11-24 20:50:30 +00:00
w1_therm_read_bin: don't call flush_signals()
This can disrupt userspace signal management. Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Cc: Roland McGrath <roland@redhat.com> Cc: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a66e356c04
commit
33e44b1588
@ -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 New Issue
Block a user