Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
[firefly-linux-kernel-4.4.55.git] / security / keys / request_key_auth.c
index 6cff37529b80210c3bc2b789c44662bb56a33f52..60d4e3f5e4bb21373900fb4cedb0907f61f68ea1 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;
        }