diff options
Diffstat (limited to 'net/tipc/crypto.c')
| -rw-r--r-- | net/tipc/crypto.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/net/tipc/crypto.c b/net/tipc/crypto.c index b4d9419a015b..d293614d5fc6 100644 --- a/net/tipc/crypto.c +++ b/net/tipc/crypto.c @@ -524,7 +524,7 @@ static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey,  		return -EEXIST;  	/* Allocate a new AEAD */ -	tmp = kzalloc(sizeof(*tmp), GFP_KERNEL); +	tmp = kzalloc(sizeof(*tmp), GFP_ATOMIC);  	if (unlikely(!tmp))  		return -ENOMEM; @@ -1474,7 +1474,7 @@ int tipc_crypto_start(struct tipc_crypto **crypto, struct net *net,  		return -EEXIST;  	/* Allocate crypto */ -	c = kzalloc(sizeof(*c), GFP_KERNEL); +	c = kzalloc(sizeof(*c), GFP_ATOMIC);  	if (!c)  		return -ENOMEM; @@ -1488,7 +1488,7 @@ int tipc_crypto_start(struct tipc_crypto **crypto, struct net *net,  	}  	/* Allocate statistic structure */ -	c->stats = alloc_percpu(struct tipc_crypto_stats); +	c->stats = alloc_percpu_gfp(struct tipc_crypto_stats, GFP_ATOMIC);  	if (!c->stats) {  		if (c->wq)  			destroy_workqueue(c->wq); @@ -2461,7 +2461,7 @@ static void tipc_crypto_work_tx(struct work_struct *work)  	}  	/* Lets duplicate it first */ -	skey = kmemdup(aead->key, tipc_aead_key_size(aead->key), GFP_KERNEL); +	skey = kmemdup(aead->key, tipc_aead_key_size(aead->key), GFP_ATOMIC);  	rcu_read_unlock();  	/* Now, generate new key, initiate & distribute it */ |