linux/drivers/staging/altera-stapl
Peter Huewe c0777d2288 staging: altera-stapl: Fix memory leak of altera_init()
In case kzalloc() fails the second or third time
we should free the previous allocated resources.
In order to keep one return point and to keep the cleanup code to one
place, some reordering was necessary.

Also while at it, removed the *sizeof(char) - to quote Linus:
"" Also removed the silly "* sizeof(u8)".  If that isn't 1, we have way
   deeper problems than a simple multiplication can fix. """

Reported-by: Andre Bartke <andre.bartke@gmail.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-06-28 13:26:23 -07:00
..
altera-comp.c
altera-exprt.h
altera-jtag.c Staging: altera: move .h file to proper place 2011-06-07 12:19:14 -07:00
altera-jtag.h
altera-lpt.c
altera.c staging: altera-stapl: Fix memory leak of altera_init() 2011-06-28 13:26:23 -07:00
altera.h Staging: altera: move .h file to proper place 2011-06-07 12:19:14 -07:00
Kconfig
Makefile