commit | 1e456a124353a753e9d1fadfbf5cd459c2f197ae | [log] [tgz] |
---|---|---|
author | David Howells <dhowells@redhat.com> | Fri Aug 06 16:08:27 2010 +0100 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Fri Aug 06 09:17:02 2010 -0700 |
tree | 4977d4fa275faafc0ba99a635d4c853a1f0df2a1 | |
parent | fc1caf6eafb30ea185720e29f7f5eccca61ecd60 [diff] |
KEYS: request_key() should return -ENOKEY if the constructed key is negative request_key() should return -ENOKEY if the key it constructs has been negatively instantiated. Without this, request_key() can return an unusable key to its caller, and if the caller then does key_validate() that won't catch the problem. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>