commit | c3bba87a7ab57e636a8c96ddd36fdedfefe4848c | [log] [tgz] |
---|---|---|
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | Mon Jul 13 20:20:50 2015 +0100 |
committer | Greg Kroah-Hartman <gregkh@google.com> | Mon Jul 13 15:42:01 2015 -0700 |
tree | 1e2abf94991aba12ee3ee4a3d603b4ce4043e530 | |
parent | 384a7a3c4f8bf96a6b2e0bddafec41f929b50958 [diff] |
greybus: loopback: truncate maximum loop data to link size Get maximum payload by way of gb_operation_get_payload_size_max() and truncate any requested loopback size greater than this value. RX of data from firmware over the specified size will not be accepted. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>