Commit 479a220
committed
fwk: Check parameter in get_hardware_id
BUG=Leila found that if you call this function with an invalid adc
channel, the EC crashes.
TEST=See bug
BRANCH=fwk-main
Signed-off-by: Daniel Schaefer <[email protected]>
(cherry picked from commit c63e94f)1 parent f996201 commit 479a220
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
0 commit comments