dect
/
linux-2.6
Archived
13
0
Fork 0

[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>
This commit is contained in:
Wim Van Sebroeck 2006-09-13 21:27:29 +02:00
parent c310e2b950
commit 196f29c8e8
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
}
default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
return 0;
}