diff options
author | 2021-12-26 15:32:45 +0100 | |
---|---|---|
committer | 2022-01-24 12:53:34 +0100 | |
commit | 9decff5f403f9a48f639736ec0271e2870cadbb6 (patch) | |
tree | 2e90f0606bc20aa912914dab4db251274d8bdcde | |
parent | Linux 5.17-rc1 (diff) | |
download | wireguard-linux-9decff5f403f9a48f639736ec0271e2870cadbb6.tar.xz wireguard-linux-9decff5f403f9a48f639736ec0271e2870cadbb6.zip |
optee: Use bitmap_free() to free bitmap
kfree() and bitmap_free() are the same. But using the latter is more
consistent when freeing memory allocated with bitmap_zalloc().
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r-- | drivers/tee/optee/notif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/optee/notif.c b/drivers/tee/optee/notif.c index a28fa03dcd0e..05212842b0a5 100644 --- a/drivers/tee/optee/notif.c +++ b/drivers/tee/optee/notif.c @@ -121,5 +121,5 @@ int optee_notif_init(struct optee *optee, u_int max_key) void optee_notif_uninit(struct optee *optee) { - kfree(optee->notif.bitmap); + bitmap_free(optee->notif.bitmap); } |