mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
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>
This commit is contained in:
parent
e783362eb5
commit
9decff5f40
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user