[PATCH v7 04/14] Documentation/security/keys: fixup function name

From: Hannes Reinecke

Date: Thu Nov 26 2026 - 09:13:03 EST


The function is called 'key_validate()', not 'validate_key()'.

Signed-off-by: Hannes Reinecke <hare@xxxxxxxxxx>
---
Documentation/security/keys/core.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/security/keys/core.rst b/Documentation/security/keys/core.rst
index 37ed42382f1672a5c822e7a042b077ffb84c7abd..c0f69e93e0c5f0efe0ae2e7a45a3a40391346423 100644
--- a/Documentation/security/keys/core.rst
+++ b/Documentation/security/keys/core.rst
@@ -1306,7 +1306,7 @@ payload contents" for more information.

* To check the validity of a key, this function can be called::

- int validate_key(struct key *key);
+ int key_validate(struct key *key);

This checks that the key in question hasn't expired or and hasn't been
revoked. Should the key be invalid, error EKEYEXPIRED or EKEYREVOKED will

--
2.51.0