Hector Palacios
fcf95670fd
watchdog: core: don't try to stop device if not running
...
A watchdog device may be stopped from userspace using WDIOC_SETOPTIONS
ioctl and flag WDIOS_DISABLECARD. If the device is closed after this
operation, watchdog_release() is called and status bits checked for
stopping it. Besides, if the device has not been unregistered a critical
message "watchdog did not stop!" is printed, although the ioctl may have
successfully stopped it already.
Without the patch a user application sample code like this will successfully
stop the watchdog, but the kernel will output the message
"watchdog did not stop!":
wd_fd = open("/dev/watchdog", O_RDWR);
flags = WDIOS_DISABLECARD;
ioctl(wd_fd, WDIOC_SETOPTIONS, &flags);
close(wd_fd);
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2013-07-11 21:14:39 +02:00
..
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-03-28 15:58:21 -07:00
2013-01-25 12:21:48 -08:00
2013-07-11 20:52:42 +02:00
2013-03-01 12:55:27 +01:00
2013-03-01 12:53:45 +01:00
2011-11-28 22:50:39 +08:00
2013-05-18 11:58:04 +02:00
2013-03-01 12:47:31 +01:00
2013-07-11 20:53:44 +02:00
2012-11-28 12:00:24 -08:00
2013-06-25 18:14:45 -05:00
2013-05-31 11:25:52 +02:00
2012-12-19 22:24:41 +01:00
2013-07-11 21:07:24 +02:00
2013-07-11 21:08:01 +02:00
2013-07-11 21:08:27 +02:00
2013-05-18 11:58:04 +02:00
2013-07-11 21:00:24 +02:00
2012-11-28 12:00:24 -08:00
2012-03-28 15:58:21 -07:00
2012-07-23 12:46:38 +02:00
2013-03-01 12:18:33 +01:00
2012-11-28 12:00:24 -08:00
2012-12-19 22:24:40 +01:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-11-28 12:00:24 -08:00
2013-07-11 21:01:06 +02:00
2012-03-27 20:06:02 +02:00
2012-03-27 19:59:26 +02:00
2012-03-27 19:59:26 +02:00
2012-03-27 20:06:02 +02:00
2012-05-23 16:24:43 +02:00
2012-03-27 20:06:02 +02:00
2012-05-09 17:20:09 +02:00
2012-05-09 17:20:09 +02:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2013-07-11 21:12:31 +02:00
2013-06-30 23:30:06 +02:00
2013-06-30 23:30:06 +02:00
2012-11-28 12:00:24 -08:00
2013-01-25 12:21:48 -08:00
2012-09-27 23:34:03 +10:00
2012-03-28 15:58:21 -07:00
2013-06-30 23:30:06 +02:00
2013-01-25 12:21:48 -08:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00
2013-07-11 21:09:30 +02:00
2013-07-11 21:04:05 +02:00
2013-07-11 20:54:21 +02:00
2013-07-11 20:54:53 +02:00
2012-11-28 12:00:24 -08:00
2011-01-12 13:51:23 +00:00
2012-03-27 20:06:02 +02:00
2010-08-05 13:26:22 +01:00
2012-11-28 12:00:24 -08:00
2013-03-01 12:49:02 +01:00
2011-03-15 16:02:27 +00:00
2013-03-01 12:53:45 +01:00
2012-03-28 15:58:21 -07:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2012-03-27 20:06:02 +02:00
2013-07-11 21:01:53 +02:00
2013-07-11 20:55:28 +02:00
2012-11-28 12:00:24 -08:00
2013-03-01 12:31:14 +01:00
2013-07-11 20:57:25 +02:00
2013-07-11 21:06:53 +02:00
2012-07-09 17:37:35 +01:00
2012-03-27 19:59:26 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:06:02 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:06:02 +02:00
2012-11-28 12:00:24 -08:00
2012-03-27 20:06:02 +02:00
2013-07-11 21:03:04 +02:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:07:21 +02:00
2013-07-11 21:03:30 +02:00
2013-03-22 23:21:47 +01:00
2013-03-22 23:21:55 +01:00
2013-03-01 12:44:34 +01:00
2013-07-11 20:58:02 +02:00
2013-07-11 21:10:13 +02:00
2013-01-25 12:21:48 -08:00
2013-02-14 00:22:53 +01:00
2012-11-28 12:00:24 -08:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 20:06:02 +02:00
2013-03-01 12:48:36 +01:00
2012-05-30 07:54:25 +02:00
2013-07-11 21:14:39 +02:00
2009-03-25 09:07:04 +00:00
2012-03-27 20:06:02 +02:00
2012-03-28 15:58:21 -07:00
2012-03-28 15:58:21 -07:00
2012-11-28 12:00:24 -08:00
2012-03-28 15:58:21 -07:00
2013-07-11 21:05:38 +02:00
2012-11-28 12:00:24 -08:00
2012-11-28 12:00:24 -08:00