[lkml]   [2018]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] misc: vexpress: Off by one in vexpress_syscfg_exec()
On Mon, Dec 03, 2018 at 05:52:19PM +0300, Dan Carpenter wrote:
> 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 <>

Good catch, thanks for identifying and fixing this.

Acked-by: Sudeep Holla <>

I assume Greg will pick this up, if not I will add this when I send
pull request next time(not sure when yet as I don't have anything for


 \ /
  Last update: 2018-12-03 17:29    [W:0.035 / U:7.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site