diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index 562f7fe287a0d7638c881ff55452470a3357accd..aa1d11a2913618b0227ced487d90630346c0886f 100644 --- a/security/keys/keyctl.c +++ b/security/keys/keyctl.c @@ -771,7 +771,7 @@ long keyctl_read_key(key_serial_t keyid, char __user *buffer, size_t buflen) if (ret == 0) goto can_read_key; if (ret != -EACCES) - goto error; + goto error2; /* we can't; see if it's searchable from this process's keyrings * - we automatically take account of the fact that it may be