diff options
| -rw-r--r-- | fs/compat_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 11172f872..f6c770319 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -808,7 +808,7 @@ static int compat_ioctl_preallocate(struct file *file, * simple reversible transform to make our table more evenly * distributed after sorting. */ -#define XFORM(i) (((i) ^ ((i) << 27) ^ ((i) << 17)) & 0xffffffff) +#define XFORM(i) (((i) ^ (((i) & 0x1f) << 27) ^ (((i) & 0x7fff) << 17)) & 0xffffffff) #define COMPATIBLE_IOCTL(cmd) XFORM(cmd), /* ioctl should not be warned about even if it's not implemented. |
