diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/dns_resolver/dns_key.c | 2 | ||||
-rw-r--r-- | net/rxrpc/ar-key.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/dns_resolver/dns_key.c b/net/dns_resolver/dns_key.c index c79b85eb4d4c..8737412c7b27 100644 --- a/net/dns_resolver/dns_key.c +++ b/net/dns_resolver/dns_key.c | |||
@@ -281,7 +281,7 @@ static int __init init_dns_resolver(void) | |||
281 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, | 281 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, |
282 | (KEY_POS_ALL & ~KEY_POS_SETATTR) | | 282 | (KEY_POS_ALL & ~KEY_POS_SETATTR) | |
283 | KEY_USR_VIEW | KEY_USR_READ, | 283 | KEY_USR_VIEW | KEY_USR_READ, |
284 | KEY_ALLOC_NOT_IN_QUOTA, NULL); | 284 | KEY_ALLOC_NOT_IN_QUOTA, NULL, NULL); |
285 | if (IS_ERR(keyring)) { | 285 | if (IS_ERR(keyring)) { |
286 | ret = PTR_ERR(keyring); | 286 | ret = PTR_ERR(keyring); |
287 | goto failed_put_cred; | 287 | goto failed_put_cred; |
diff --git a/net/rxrpc/ar-key.c b/net/rxrpc/ar-key.c index 3fb492eedeb9..1021b4c0bdd2 100644 --- a/net/rxrpc/ar-key.c +++ b/net/rxrpc/ar-key.c | |||
@@ -965,7 +965,7 @@ int rxrpc_get_server_data_key(struct rxrpc_connection *conn, | |||
965 | 965 | ||
966 | key = key_alloc(&key_type_rxrpc, "x", | 966 | key = key_alloc(&key_type_rxrpc, "x", |
967 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, 0, | 967 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, 0, |
968 | KEY_ALLOC_NOT_IN_QUOTA); | 968 | KEY_ALLOC_NOT_IN_QUOTA, NULL); |
969 | if (IS_ERR(key)) { | 969 | if (IS_ERR(key)) { |
970 | _leave(" = -ENOMEM [alloc %ld]", PTR_ERR(key)); | 970 | _leave(" = -ENOMEM [alloc %ld]", PTR_ERR(key)); |
971 | return -ENOMEM; | 971 | return -ENOMEM; |
@@ -1012,7 +1012,7 @@ struct key *rxrpc_get_null_key(const char *keyname) | |||
1012 | 1012 | ||
1013 | key = key_alloc(&key_type_rxrpc, keyname, | 1013 | key = key_alloc(&key_type_rxrpc, keyname, |
1014 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, | 1014 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, |
1015 | KEY_POS_SEARCH, KEY_ALLOC_NOT_IN_QUOTA); | 1015 | KEY_POS_SEARCH, KEY_ALLOC_NOT_IN_QUOTA, NULL); |
1016 | if (IS_ERR(key)) | 1016 | if (IS_ERR(key)) |
1017 | return key; | 1017 | return key; |
1018 | 1018 | ||