hamradio/mkiss: fix typo in compat_ioctl
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Nov 2009 05:13:21 +0000 (21:13 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2009 05:13:21 +0000 (21:13 -0800)
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>
drivers/net/hamradio/mkiss.c

index fc9c57893f8adae83c5e9dca15084d2fc9530619..7db0a1c3216c7b8dc86703ac23074b9afbe82867 100644 (file)
@@ -903,7 +903,7 @@ static int mkiss_ioctl(struct tty_struct *tty, struct file *file,
 static long mkiss_compat_ioctl(struct tty_struct *tty, struct file *file,
        unsigned int cmd, unsigned long arg)
 {
-       switch (arg) {
+       switch (cmd) {
        case SIOCGIFNAME:
        case SIOCGIFENCAP:
        case SIOCSIFENCAP: