Commit 70c252de authored by Seth Forshee's avatar Seth Forshee Committed by Luis Henriques

(namespace) Revert "UBUNTU: SAUCE: quota: Require that qids passed to dqget()...

(namespace) Revert "UBUNTU: SAUCE: quota: Require that qids passed to dqget() be valid and map into s_user_ns"

BugLink: http://bugs.launchpad.net/bugs/1634964

This reverts commit 2c79b9bf in
order to apply the corresponding upstream patches.
Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent ca52383a
......@@ -834,12 +834,6 @@ struct dquot *dqget(struct super_block *sb, struct kqid qid)
unsigned int hashent = hashfn(sb, qid);
struct dquot *dquot, *empty = NULL;
/* qid must be valid and must map into sb's userns */
if (!qid_valid(qid))
return ERR_PTR(-EINVAL);
if (from_kqid(sb->s_user_ns, qid) == (qid_t)-1)
return ERR_PTR(-EOVERFLOW);
if (!sb_has_quota_active(sb, qid.type))
return ERR_PTR(-ESRCH);
we_slept:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment