]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/compat_ioctl.c
Btrfs: fix regressions in copy_from_user handling
[mv-sheeva.git] / fs / compat_ioctl.c
index 5d9b936c458baf9e138640aca5d216775e1c201c..03e59aa318eb0a2c9801857a9d343fa008fdc7a2 100644 (file)
@@ -946,6 +946,7 @@ COMPATIBLE_IOCTL(TIOCGPGRP)
 COMPATIBLE_IOCTL(TIOCGPTN)
 COMPATIBLE_IOCTL(TIOCSPTLCK)
 COMPATIBLE_IOCTL(TIOCSERGETLSR)
+COMPATIBLE_IOCTL(TIOCSIG)
 #ifdef TCGETS2
 COMPATIBLE_IOCTL(TCGETS2)
 COMPATIBLE_IOCTL(TCSETS2)
@@ -1698,8 +1699,7 @@ asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd,
                                goto out_fput;
                }
 
-               if (!filp->f_op ||
-                   (!filp->f_op->ioctl && !filp->f_op->unlocked_ioctl))
+               if (!filp->f_op || !filp->f_op->unlocked_ioctl)
                        goto do_ioctl;
                break;
        }