Files
OpenCellular/common
Nicolas Boichat 9d7d189450 usb_pd_protocol: tcpm_get_message: Check return value
We currently rely on *head == 0 as error condition, which is
fragile and inconsistent across TCPCs implementations.

Instead, let's return a proper return value on all implementations.

BRANCH=none
BUG=chrome-os-partner:60575
TEST=elm FW as of 65fb80d (later version include a fix that would
     hide this issue), cherry-pick this patch, connect j5create
     adapter, then HDMI, then power => no crash

Change-Id: If7235e0491e9f80fdd50ce2605477ee518f8e1aa
Reviewed-on: https://chromium-review.googlesource.com/417443
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
2016-12-08 22:47:02 -08:00
..
2016-11-08 17:11:28 -08:00
2015-05-19 02:46:27 +00:00
2016-11-15 17:41:53 -08:00
2016-11-15 17:41:53 -08:00
2016-04-27 14:04:07 -07:00
2016-09-07 14:01:18 -07:00
2016-11-08 17:11:28 -08:00
2015-09-25 09:13:34 -07:00
2016-03-02 13:39:47 -08:00
2016-11-15 17:41:53 -08:00
2016-11-08 17:11:28 -08:00
2016-11-15 17:41:53 -08:00
2016-07-29 10:51:22 -07:00
2014-05-17 20:14:17 +00:00
2016-05-05 19:16:50 -07:00
2016-03-21 16:35:33 -07:00
2016-11-08 17:11:28 -08:00
2016-11-02 17:39:56 -07:00
2016-08-22 23:27:24 -07:00
2015-09-24 12:46:28 -07:00