Skip to content

Commit 07c3c4e

Browse files
arndbdavem330
authored andcommitted
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>
1 parent 958fc41 commit 07c3c4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/hamradio/mkiss.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ static int mkiss_ioctl(struct tty_struct *tty, struct file *file,
903903
static long mkiss_compat_ioctl(struct tty_struct *tty, struct file *file,
904904
unsigned int cmd, unsigned long arg)
905905
{
906-
switch (arg) {
906+
switch (cmd) {
907907
case SIOCGIFNAME:
908908
case SIOCGIFENCAP:
909909
case SIOCSIFENCAP:

0 commit comments

Comments
 (0)