Christoph Hellwig wrote:
Currently all network protocols need to call dev_ioctl as the default
fallback in their ioctl implementations.  This patch adds a fallback
to dev_ioctl to sock_ioctl if the protocol returned -ENOIOCTLCMD.
This way all the procotol ioctl handlers can be simplified and we don't
need to export dev_ioctl.

Signed-off-by: Christoph Hellwig <[EMAIL PROTECTED]>

[]
--- linux-2.6.orig/net/wanrouter/af_wanpipe.c   2005-12-25 14:12:07.000000000 
+0100
+++ linux-2.6/net/wanrouter/af_wanpipe.c        2005-12-25 14:13:42.000000000 
+0100
@@ -1839,7 +1839,7 @@
 #endif
default:
-                       return dev_ioctl(cmd,(void __user *) arg);
+                       return �ENOIOCTLCMD;
        }
        /*NOTREACHED*/
 }

There's something wrong with this new `return' statement.
On my screen it looks like a 'diamond' character instead
of a minus sign -- a character with code 0xAD ;)

/mjt
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to