From: Devendra Naga Date: Sat, 9 Jun 2012 12:01:23 +0000 (+0530) Subject: pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails X-Git-Tag: v3.5-rc3~20^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf7481852c8ece4888c299ba0259b789c3dbde3;p=pandora-kernel.git pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails 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 Signed-off-by: Devendra Naga Signed-off-by: Linus Walleij --- Reading git-diff-tree failed