Staging: echo: fix kmalloc()/kfree() uses
authorPekka Enberg <penberg@cs.helsinki.fi>
Fri, 17 Oct 2008 17:55:03 +0000 (20:55 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Oct 2008 16:56:34 +0000 (09:56 -0700)
commitdb2af149bd0c798ce599365ee4320dd30dda852c
treeff327d79bdc026ca42d4f02edae4a35df8676db0
parentf55ccbf6bc5e5e857b15f51d481aa7b1cd993ae0
Staging: echo: fix kmalloc()/kfree() uses

This patch removes the malloc()/free() macro wrappers and converts
call-sites to use kcalloc() and kzalloc() where appropriate. I also
fixed up out-of-memory error handling in couple of places where it was
broken.

Cc: David Rowe <david@rowetel.com>
Cc: Steve Underwood <steveu@coppice.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/echo/echo.c
drivers/staging/echo/fir.h