]> err.no Git - linux-2.6/blobdiff - net/ax25/af_ax25.c
[PATCH] handle errors returned by platform_get_irq*()
[linux-2.6] / net / ax25 / af_ax25.c
index 8b5d10aaba059b698485a51feafa840c36061905..dbf9b47681f72c119b217c44f4a883d1345ba6f9 100644 (file)
@@ -14,6 +14,7 @@
  * Copyright (C) Frederic Rible F1OAT (frible@teaser.fr)
  */
 #include <linux/config.h>
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/types.h>
@@ -1827,7 +1828,7 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
                break;
 
        default:
-               res = dev_ioctl(cmd, argp);
+               res = -ENOIOCTLCMD;
                break;
        }
        release_sock(sk);