Re: [PATCH] cros_ec: fix nul-termination for firmware build info

From: Benson Leung
Date: Sat Dec 16 2017 - 00:08:41 EST

Hi Arnd,

On Mon, Dec 04, 2017 at 03:49:48PM +0100, Arnd Bergmann wrote:
> As gcc-8 reports, we zero out the wrong byte:
> drivers/platform/chrome/cros_ec_sysfs.c: In function 'show_ec_version':
> drivers/platform/chrome/cros_ec_sysfs.c:190:12: error: array subscript 4294967295 is above array bounds of 'uint8_t[]' [-Werror=array-bounds]
> This changes the code back to what it did before changing to a
> zero-length array structure.
> Fixes: a841178445bb ("mfd: cros_ec: Use a zero-length array for command data")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Applied. Thanks!


Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
Chromium OS Project

Attachment: signature.asc
Description: Digital signature