diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-11-16 00:13:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-16 00:13:21 -0500 |
commit | 07c3c4ee3a4143d0c8bb2e260c089bf012cf2c6e (patch) | |
tree | 459b97c1fff94128a554ed5ca3f237ceac132245 /drivers/net/hamradio | |
parent | 958fc41e320e17bd4db22d6da81184654350aaab (diff) |
hamradio/mkiss: fix typo in compat_ioctl
My last commit introduced an typo causing the
compat_ioctl function to do nothing useful.
The obvious way for an ioctl function to work
is to look at the command, not the argument first.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r-- | drivers/net/hamradio/mkiss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index fc9c57893f8a..7db0a1c3216c 100644 --- a/drivers/net/hamradio/mkiss.c +++ b/drivers/net/hamradio/mkiss.c | |||
@@ -903,7 +903,7 @@ static int mkiss_ioctl(struct tty_struct *tty, struct file *file, | |||
903 | static long mkiss_compat_ioctl(struct tty_struct *tty, struct file *file, | 903 | static long mkiss_compat_ioctl(struct tty_struct *tty, struct file *file, |
904 | unsigned int cmd, unsigned long arg) | 904 | unsigned int cmd, unsigned long arg) |
905 | { | 905 | { |
906 | switch (arg) { | 906 | switch (cmd) { |
907 | case SIOCGIFNAME: | 907 | case SIOCGIFNAME: |
908 | case SIOCGIFENCAP: | 908 | case SIOCGIFENCAP: |
909 | case SIOCSIFENCAP: | 909 | case SIOCSIFENCAP: |