diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-12-03 17:52:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-15 08:07:37 +0100 |
commit | c0b3665009aa52c91829804ee997c563ad60340f (patch) | |
tree | 5f76ff817021fece48e5ab0acc40a0a0f9187b07 /samples | |
parent | 181f1f0db85f29c67c5c26b316f3dd11dbef2940 (diff) |
misc: vexpress: Off by one in vexpress_syscfg_exec()
commit f8a70d8b889f180e6860cb1f85fed43d37844c5a upstream.
The > comparison should be >= to prevent reading beyond the end of the
func->template[] array.
(The func->template array is allocated in vexpress_syscfg_regmap_init()
and it has func->num_templates elements.)
Fixes: 974cc7b93441 ("mfd: vexpress: Define the device as MFD cells")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions