ipmi_watchdog: Fix read syscall not responding to signals during sleep
authorCorey Minyard <minyard@acm.org>
Wed, 17 May 2023 08:54:12 +0000 (16:54 +0800)
committerCorey Minyard <minyard@acm.org>
Thu, 18 May 2023 22:31:31 +0000 (17:31 -0500)
commit9930702cfebb24acf6c000b55541239095447e47
tree96b9420715402ee8454349c1ba63f32087d256fb
parent4d6d4c7f541d7027beed4fb86eb2c451bd8d6fff
ipmi_watchdog: Fix read syscall not responding to signals during sleep

Read syscall cannot response to sigals when data_to_read remains at 0
and the while loop cannot break.  Check signal_pending in the loop.

Reported-by: Zhen Ni <zhen.ni@easystack.cn>
Message-Id: <20230517085412.367022-1-zhen.ni@easystack.cn>
Signed-off-by: Corey Minyard <minyard@acm.org>
drivers/char/ipmi/ipmi_watchdog.c