summaryrefslogtreecommitdiff
path: root/drivers/tee
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-12-26 15:32:45 +0100
committerJens Wiklander <jens.wiklander@linaro.org>2022-01-24 12:53:34 +0100
commit9decff5f403f9a48f639736ec0271e2870cadbb6 (patch)
tree2e90f0606bc20aa912914dab4db251274d8bdcde /drivers/tee
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff)
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>
Diffstat (limited to 'drivers/tee')
-rw-r--r--drivers/tee/optee/notif.c2
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);
}