x86-32, vdso: On system call restart after SYSENTER, use int $0x80
[cascardo/linux.git] / security / keys / request_key_auth.c
index 6cff375..60d4e3f 100644 (file)
@@ -251,6 +251,8 @@ struct key *key_get_instantiation_authkey(key_serial_t target_id)
 
        if (IS_ERR(authkey_ref)) {
                authkey = ERR_CAST(authkey_ref);
+               if (authkey == ERR_PTR(-EAGAIN))
+                       authkey = ERR_PTR(-ENOKEY);
                goto error;
        }