kfifo: fix a memory leak in dma example
authorAndrea Righi <arighi@develer.com>
Thu, 19 Aug 2010 21:13:30 +0000 (14:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Aug 2010 16:34:54 +0000 (09:34 -0700)
commitd83a71c4219191a9a881318ae5ca9b39aa1d0540
tree8556b81fb6a07e53735f4984780f8a8caf133383
parent7b34d5257a90c419d67c1c3b52f87a679845ef1e
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: Andrea Righi <arighi@develer.com>
Acked-by: Stefani Seibold <stefani@seibold.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
samples/kfifo/dma-example.c