]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: cros_ec: Only write EC state when the EC is probed
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:11:08 +0000 (18:11 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 02:04:31 +0000 (15:04 +1300)
commita5bc9abcee0ac8982c14f9cd585570a268eb9e47
tree47b5ff1bb2c176d09c9ad1f50407b20d83eb7e6f
parent5d8c37910d87828e914262991de7d5599d63692a
sandbox: cros_ec: Only write EC state when the EC is probed

This can crash if the EC has not yet been probed. Add a check to prevent
this.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec_sandbox.c