| commit | e363d6f29198cd209cc0fe60c77459827c874f3e | [log] [tgz] |
|---|---|---|
| author | Nick Crews <ncrews@chromium.org> | Mon Mar 11 09:58:38 2019 -0600 |
| committer | Benson Leung <bleung@chromium.org> | Sun Mar 17 17:06:33 2019 -0700 |
| tree | df679028c7d310c77067111231326d1377f34d5a | |
| parent | 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b [diff] |
platform/chrome: Fix locking pattern in wilco_ec_mailbox()
Before, ec->data_buffer could be written to from multiple
contexts at the same time. Since the ec is shared data,
it needs to be inside the mutex as well.
Fixes: 7b3d4f44abf0 ("platform/chrome: Add new driver for Wilco EC")
Signed-off-by: Nick Crews <ncrews@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Benson Leung <bleung@chromium.org>