]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: f71808e_wdt: Fix magic close handling
authorIgor Pylypiv <igor.pylypiv@gmail.com>
Wed, 28 Feb 2018 08:59:12 +0000 (00:59 -0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 3 Mar 2018 14:52:32 +0000 (15:52 +0100)
commit9fe457becb9ab72a608524ab257f8223cd09ccee
tree1b38e1f2d53c6551ec848486655dc4984434ed3e
parentdba709ca0abb570b73aa9d13190ee4a01f401715
watchdog: f71808e_wdt: Fix magic close handling

Watchdog close is "expected" when any byte is 'V' not just the last one.
Writing "V" to the device fails because the last byte is the end of string.

$ echo V > /dev/watchdog
f71808e_wdt: Unexpected close, not stopping watchdog!

Signed-off-by: Igor Pylypiv <igor.pylypiv@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/f71808e_wdt.c