summaryrefslogtreecommitdiffstats
path: root/drivers/char/watchdog/iTCO_wdt.c
diff options
context:
space:
mode:
authorWim Van Sebroeck2006-09-13 21:27:29 +0200
committerWim Van Sebroeck2006-10-03 22:51:18 +0200
commitf311896a990a0b766e279defe9adff29160ada03 (patch)
treec7f46eb23c639b07e76e27640a62ccde96f8ed38 /drivers/char/watchdog/iTCO_wdt.c
parent[WATCHDOG] iTCO_wdt.c shutdown patch (diff)
downloadkernel-qcow2-linux-f311896a990a0b766e279defe9adff29160ada03.tar.gz
kernel-qcow2-linux-f311896a990a0b766e279defe9adff29160ada03.tar.xz
kernel-qcow2-linux-f311896a990a0b766e279defe9adff29160ada03.zip
[WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl()
Return ENOTTY instead of ENOIOCTLCMD in user-visible ioctl() results The watchdog drivers used to return ENOIOCTLCMD for bad ioctl() commands. ENOIOCTLCMD should not be visible by the user, so use ENOTTY instead. Signed-off-by: Samuel Tardieu <sam@rfc1149.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers/char/watchdog/iTCO_wdt.c')
-rw-r--r--drivers/char/watchdog/iTCO_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/watchdog/iTCO_wdt.c b/drivers/char/watchdog/iTCO_wdt.c
index ebd3fc8000e5..8f89948832fc 100644
--- a/drivers/char/watchdog/iTCO_wdt.c
+++ b/drivers/char/watchdog/iTCO_wdt.c
@@ -494,7 +494,7 @@ static int iTCO_wdt_ioctl (struct inode *inode, struct file *file,
}
default:
- return -ENOIOCTLCMD;
+ return -ENOTTY;
}
}