]> git.baikalelectronics.ru Git - uboot.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)
commita526c24af60109a7521952a7552997fa7a53f1bb
tree47b5ff1bb2c176d09c9ad1f50407b20d83eb7e6f
parent00e28f9c4989379c49d4fd9b131d818742f78559
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