|
@@ -760,9 +760,8 @@ idmap_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
|
|
|
}
|
|
|
|
|
|
if (!(im.im_status & IDMAP_STATUS_SUCCESS)) {
|
|
|
- ret = mlen;
|
|
|
- complete_request_key(cons, -ENOKEY);
|
|
|
- goto out_incomplete;
|
|
|
+ ret = -ENOKEY;
|
|
|
+ goto out;
|
|
|
}
|
|
|
|
|
|
namelen_in = strnlen(im.im_name, IDMAP_NAMESZ);
|
|
@@ -779,7 +778,6 @@ idmap_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
|
|
|
|
|
|
out:
|
|
|
complete_request_key(cons, ret);
|
|
|
-out_incomplete:
|
|
|
return ret;
|
|
|
}
|
|
|
|