diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2011-05-31 01:11:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-28 13:26:23 -0700 |
commit | c0777d228892f6a6f87f3439a030d52406f8d637 (patch) | |
tree | f37ddef27285b4680c30d954fe34f6ece5c1d2a9 /security/inode.c | |
parent | 8ded351ad1889e5351f29b3b1b1716c4992856ee (diff) |
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>
Diffstat (limited to 'security/inode.c')
0 files changed, 0 insertions, 0 deletions