Whamcloud - gitweb
LU-14552 ptlrpc: NULL pointer dereference in ptlrpc_watchdog_fire
[fs/lustre-release.git] / contrib / scripts / crypto_patches / 0003_keyring_search_4args.patch
1 Linux 5.2 commit dcf49dbc8077) adds a 'recurse' flag for keyring searches.
2
3 --- a/libcfs/libcfs/crypto/keyring.c
4 +++ b/libcfs/libcfs/crypto/keyring.c
5 @@ -138,7 +138,11 @@ static struct key *search_llcrypt_keyrin
6          */
7         key_ref_t keyref = make_key_ref(keyring, true /* possessed */);
8  
9 +#ifdef HAVE_KEYRING_SEARCH_4ARGS
10         keyref = keyring_search(keyref, type, description, false);
11 +#else
12 +       keyref = keyring_search(keyref, type, description);
13 +#endif
14         if (IS_ERR(keyref)) {
15                 if (PTR_ERR(keyref) == -EAGAIN || /* not found */
16                     PTR_ERR(keyref) == -EKEYREVOKED) /* recently invalidated */