atm: separate ATM_GETNAMES handling from the rest of atm_dev_ioctl()
[linux-2.6-microblaze.git] / net / atm / ioctl.c
index d955b68..0b4b077 100644 (file)
@@ -162,7 +162,11 @@ static int do_vcc_ioctl(struct socket *sock, unsigned int cmd,
        if (error != -ENOIOCTLCMD)
                goto done;
 
-       error = atm_dev_ioctl(cmd, argp, compat);
+       if (cmd == ATM_GETNAMES) {
+               error = atm_getnames(argp, compat);
+       } else {
+               error = atm_dev_ioctl(cmd, argp, compat);
+       }
 
 done:
        return error;