[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181203162808.GA14028@e107155-lin>
Date: Mon, 3 Dec 2018 16:28:50 +0000
From: Sudeep Holla <sudeep.holla@....com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Arnd Bergmann <arnd@...db.de>, Pawel Moll <pawel.moll@....com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Liviu Dudau <liviu.dudau@....com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
kernel-janitors@...r.kernel.org,
Sudeep Holla <sudeep.holla@....com>
Subject: Re: [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 <dan.carpenter@...cle.com>
Good catch, thanks for identifying and fixing this.
Acked-by: Sudeep Holla <sudeep.holla@....com>
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
v4.21)
--
Regards,
Sudeep
Powered by blists - more mailing lists