Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d83a71c4 authored by Andrea Righi's avatar Andrea Righi Committed by Linus Torvalds
Browse files

kfifo: fix a memory leak in dma example



We use a dynamically allocated kfifo in the dma example, so we need to
free it when unloading the module.

Signed-off-by: default avatarAndrea Righi <arighi@develer.com>
Acked-by: default avatarStefani Seibold <stefani@seibold.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7b34d525
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -105,9 +105,7 @@ static int __init example_init(void)

static void __exit example_exit(void)
{
#ifdef DYNAMIC
	kfifo_free(&test);
#endif
	kfifo_free(&fifo);
}

module_init(example_init);