diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-12-04 15:49:48 +0100 |
---|---|---|
committer | Benson Leung <bleung@chromium.org> | 2017-12-15 21:07:17 -0800 |
commit | 50a0d71a5d20e1d3eff1d974fdc8559ad6d74892 (patch) | |
tree | fe6fa1b0ee2f3ee31a4602d930d6d69d6e1daf42 /block | |
parent | a376cd91606365609d8fbd57247618bd51da1fc6 (diff) |
cros_ec: fix nul-termination for firmware build info
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@arndb.de>
Signed-off-by: Benson Leung <bleung@chromium.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions