From e90e7640f7da1814a947e31a8b81f0aa9df6782f Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Thu, 10 May 2007 11:51:11 -0700 Subject: [PATCH] --- yaml --- r: 55866 b: refs/heads/master c: d9de2622bd4fd29cab4ef7db66a9f916cb38e032 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/compat_ioctl.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6ea3c1cc981a..a62c1174fcf5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 643bd27298bdcc4e75b3e6a7ca459675eb5378c3 +refs/heads/master: d9de2622bd4fd29cab4ef7db66a9f916cb38e032 diff --git a/trunk/fs/compat_ioctl.c b/trunk/fs/compat_ioctl.c index d92bc3eb7afc..65643def3182 100644 --- a/trunk/fs/compat_ioctl.c +++ b/trunk/fs/compat_ioctl.c @@ -3566,10 +3566,13 @@ asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd, goto found_handler; } +#ifdef CONFIG_NET if (S_ISSOCK(filp->f_path.dentry->d_inode->i_mode) && cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) { error = siocdevprivate_ioctl(fd, cmd, arg); - } else { + } else +#endif + { static int count; if (++count <= 50)