Merge tag 'nfsd-5.9' of git://git.linux-nfs.org/projects/cel/cel-2.6
[linux-2.6-microblaze.git] / drivers / net / wireguard / noise.c
index 201a226..3dd3b76 100644 (file)
@@ -114,7 +114,7 @@ static struct noise_keypair *keypair_create(struct wg_peer *peer)
 
 static void keypair_free_rcu(struct rcu_head *rcu)
 {
-       kzfree(container_of(rcu, struct noise_keypair, rcu));
+       kfree_sensitive(container_of(rcu, struct noise_keypair, rcu));
 }
 
 static void keypair_free_kref(struct kref *kref)
@@ -821,7 +821,7 @@ bool wg_noise_handshake_begin_session(struct noise_handshake *handshake,
                        handshake->entry.peer->device->index_hashtable,
                        &handshake->entry, &new_keypair->entry);
        } else {
-               kzfree(new_keypair);
+               kfree_sensitive(new_keypair);
        }
        rcu_read_unlock_bh();