From: Christophe JAILLET Date: Sun, 26 Dec 2021 14:32:45 +0000 (+0100) Subject: optee: Use bitmap_free() to free bitmap X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9decff5f403f9a48f639736ec0271e2870cadbb6;p=linux.git 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 Reviewed-by: Sumit Garg Signed-off-by: Jens Wiklander --- diff --git a/drivers/tee/optee/notif.c b/drivers/tee/optee/notif.c index a28fa03dcd0e1..05212842b0a50 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); }