autofs4: Modify autofs_wait to use current_uid() and current_gid()
[linux-2.6-block.git] / fs / autofs4 / waitq.c
index 8fc41705c7cd50af4c53f71851d8a4136673411b..9908ecf7fce094b6b2cbea57f3790e0b371d45aa 100644 (file)
@@ -443,8 +443,8 @@ int autofs4_wait(struct autofs_sb_info *sbi,
                memcpy(&wq->name, &qstr, sizeof(struct qstr));
                wq->dev = autofs4_get_dev(sbi);
                wq->ino = autofs4_get_ino(sbi);
-               wq->uid = current_cred()->uid;
-               wq->gid = current_cred()->gid;
+               wq->uid = current_uid();
+               wq->gid = current_gid();
                wq->pid = pid;
                wq->tgid = tgid;
                wq->status = -EINTR; /* Status return if interrupted */