summaryrefslogtreecommitdiff
path: root/util/comm-dev.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-07-08 13:58:37 -0700
committerChromeBot <chrome-bot@google.com>2013-07-09 08:51:43 -0700
commitab59576a43a9fbfc97e382629416bdee90d1019d (patch)
treeedb481af56458251ab9faad693014f17fecd222b /util/comm-dev.c
parent528ddf7660c48f33beb834e0cfd629cd08f16548 (diff)
downloadchrome-ec-ab59576a43a9fbfc97e382629416bdee90d1019d.tar.gz
Fix uninitialized constant in util/comm-dev.c
This made the /dev/cros_ec method fail when reporting the version. BUG=chrome-os-partner:20571 BRANCH=none TEST=manual ectool version Used to fail; now it works again. Change-Id: Ib5b7188f713981cffce36d065255d81b102d4bbe Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/61133 Reviewed-by: Randall Spangler <rspangler@chromium.org> Commit-Queue: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'util/comm-dev.c')
-rw-r--r--util/comm-dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/comm-dev.c b/util/comm-dev.c
index fb5fb31ae6..89b1cd9069 100644
--- a/util/comm-dev.c
+++ b/util/comm-dev.c
@@ -110,7 +110,7 @@ int comm_init_dev(void)
* TODO: need a way to get this from the driver and EC. For now,
* pick a magic lowest common denominator value.
*/
- ec_max_outsize = EC_PROTO2_MAX_PARAM_SIZE - 8;
+ ec_max_insize = ec_max_outsize = EC_PROTO2_MAX_PARAM_SIZE - 8;
return 0;
}