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:
67695f2
)
pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails
author
Devendra Naga
<devendra.aaru@gmail.com>
Sat, 9 Jun 2012 12:01:23 +0000
(17:31 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 12 Jun 2012 14:25:56 +0000
(16:25 +0200)
if there is no purecfg , the group pointer is allocated using kzalloc and if it
fails to allocate, we wont free the new_map,
if config is true, we call kmemdup and if it
fails to do so we wont free the allocated group if there is no purecfg.
fix this by doing the frees of new_map pointer and group pointers.
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mxs.c
patch
|
blob
|
history
diff --cc
drivers/pinctrl/pinctrl-mxs.c
Simple merge