diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-12-03 17:52:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-06 15:42:18 +0100 |
commit | f8a70d8b889f180e6860cb1f85fed43d37844c5a (patch) | |
tree | 6f6bd1fe75cd71d5e8e6f3dbdf81a74d4dcc95b3 /block/bsg.c | |
parent | b50584832b4c8b774ec2596ae58fba9d9c4a668d (diff) | |
download | linux-f8a70d8b889f180e6860cb1f85fed43d37844c5a.tar.gz linux-f8a70d8b889f180e6860cb1f85fed43d37844c5a.tar.bz2 linux-f8a70d8b889f180e6860cb1f85fed43d37844c5a.zip |
misc: vexpress: Off by one in vexpress_syscfg_exec()
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 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions