git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db9d1f6
)
staging: slicoss: fix a leak when kzalloc fail
author
Devendra Naga
<devendra.aaru@gmail.com>
Thu, 25 Oct 2012 06:11:51 +0000
(
02:11
-0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 26 Oct 2012 16:36:06 +0000
(09:36 -0700)
slic_card_locate does a kzalloc of physcard, and if it fails,
in my previous patch i returned -ENOMEM, but left the driver leak
the memory if card_hostid == SLIC_HOSTID_DEFAULT,
fix this memory leak if the above condition is true
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
No differences found