Skip to content

Commit 9decff5

Browse files
tititiou36jenswi-linaro
authored andcommitted
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 <[email protected]> Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent e783362 commit 9decff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tee/optee/notif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,5 @@ int optee_notif_init(struct optee *optee, u_int max_key)
121121

122122
void optee_notif_uninit(struct optee *optee)
123123
{
124-
kfree(optee->notif.bitmap);
124+
bitmap_free(optee->notif.bitmap);
125125
}

0 commit comments

Comments
 (0)