summaryrefslogtreecommitdiffstats
path: root/kernel/fs/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/stat.c')
-rw-r--r--kernel/fs/stat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/fs/stat.c b/kernel/fs/stat.c
index cccc1aab9..d4a61d8dc 100644
--- a/kernel/fs/stat.c
+++ b/kernel/fs/stat.c
@@ -367,8 +367,6 @@ static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf)
INIT_STRUCT_STAT64_PADDING(tmp);
#ifdef CONFIG_MIPS
/* mips has weird padding, so we don't get 64 bits there */
- if (!new_valid_dev(stat->dev) || !new_valid_dev(stat->rdev))
- return -EOVERFLOW;
tmp.st_dev = new_encode_dev(stat->dev);
tmp.st_rdev = new_encode_dev(stat->rdev);
#else