commit | b86e1926be37c77deeb176466d98678feab04066 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Jun 11 13:17:41 2014 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jul 09 17:00:45 2014 -0700 |
tree | 45ef90e6c898522221deaa382034ef21a1f98183 | |
parent | 8a26af30ff55bec82443e718e26efd6b3a8bba83 [diff] |
mfd: 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 <dan.carpenter@oracle.com> Acked-by: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>