From: Dan Carpenter Date: Wed, 11 Jun 2014 10:17:41 +0000 (+0300) Subject: misc: vexpress: fix error handling vexpress_syscfg_regmap_init() X-Git-Tag: omap-for-v3.16/fixes-rc4~82^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc96e661a57d5e4de01503d460116cce7ced7e70;p=pandora-kernel.git misc: vexpress: fix error handling vexpress_syscfg_regmap_init() This function should be returning an ERR_PTR() on failure instead of NULL. Also there is a use after free bug if regmap_init() fails because we free "func" and then dereference doing the return. Signed-off-by: Dan Carpenter Acked-by: Pawel Moll Signed-off-by: Arnd Bergmann --- Reading git-diff-tree failed