]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
greybus: loopback: truncate maximum loop data to link size
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Mon, 13 Jul 2015 19:20:50 +0000 (20:20 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 13 Jul 2015 22:42:01 +0000 (15:42 -0700)
commitc3bba87a7ab57e636a8c96ddd36fdedfefe4848c
tree1e2abf94991aba12ee3ee4a3d603b4ce4043e530
parent384a7a3c4f8bf96a6b2e0bddafec41f929b50958
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>
drivers/staging/greybus/loopback.c