aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/compat_ioctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index d92bc3eb7afc..65643def3182 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -3566,10 +3566,13 @@ asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd,
3566 goto found_handler; 3566 goto found_handler;
3567 } 3567 }
3568 3568
3569#ifdef CONFIG_NET
3569 if (S_ISSOCK(filp->f_path.dentry->d_inode->i_mode) && 3570 if (S_ISSOCK(filp->f_path.dentry->d_inode->i_mode) &&
3570 cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) { 3571 cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) {
3571 error = siocdevprivate_ioctl(fd, cmd, arg); 3572 error = siocdevprivate_ioctl(fd, cmd, arg);
3572 } else { 3573 } else
3574#endif
3575 {
3573 static int count; 3576 static int count;
3574 3577
3575 if (++count <= 50) 3578 if (++count <= 50)