Files
OpenCellular/driver
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-09-23 15:10:08 -07:00
2016-09-23 15:10:08 -07:00
2016-09-23 15:10:08 -07:00
2016-09-23 15:10:08 -07:00
2016-09-23 15:10:08 -07:00
2016-09-23 15:10:08 -07:00
2016-11-15 07:04:30 -08:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2016-08-24 17:40:52 -07:00