cros_ec: Fix issue with cros_ec_flash_write command
authorMoritz Fischer <moritz.fischer@ettus.com>
Mon, 12 Sep 2016 19:57:52 +0000 (12:57 -0700)
committersjg <sjg@chromium.org>
Sun, 9 Oct 2016 15:30:32 +0000 (09:30 -0600)
commitbae5b97e8ec0fedb50350a14e76648714bc51c99
tree9dc0d5b0232ce68da5e9ba481283c2d5704b2c88
parent7a71e4891d6fab9f9d54cee72e6012727ef45d82
cros_ec: Fix issue with cros_ec_flash_write command

This commit fixes an issue where data is written to an
invalid memory location.
The issue has been introduced in commit
(88364387 cros: add cros_ec_driver)

Cc: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec.c