diff options
-rw-r--r-- | fs/fuse/dev.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 78b6293bd04d..6e005da03aed 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -1261,12 +1261,6 @@ static ssize_t fuse_dev_do_read(struct fuse_dev *fud, struct file *file, | |||
1261 | in = &req->in; | 1261 | in = &req->in; |
1262 | reqsize = in->h.len; | 1262 | reqsize = in->h.len; |
1263 | 1263 | ||
1264 | if (task_active_pid_ns(current) != fc->pid_ns) { | ||
1265 | rcu_read_lock(); | ||
1266 | in->h.pid = pid_vnr(find_pid_ns(in->h.pid, fc->pid_ns)); | ||
1267 | rcu_read_unlock(); | ||
1268 | } | ||
1269 | |||
1270 | /* If request is too large, reply with an error and restart the read */ | 1264 | /* If request is too large, reply with an error and restart the read */ |
1271 | if (nbytes < reqsize) { | 1265 | if (nbytes < reqsize) { |
1272 | req->out.h.error = -EIO; | 1266 | req->out.h.error = -EIO; |