commit | 374c230271f7b434550a9dd42fbfbc11ab159703 | [log] [tgz] |
---|---|---|
author | Ley Foon Tan <ley.foon.tan@intel.com> | Wed Apr 24 13:21:47 2019 +0800 |
committer | Marek Vasut <marex@denx.de> | Thu Apr 25 00:00:49 2019 +0200 |
tree | f010dc32ca2b5499bbac29d32ddb4b856c4e9400 | |
parent | 9981ed12fd8dd3de251045335031a6ae286b565d [diff] |
arm: socfpga: mailbox: Fix off-by-one error on command length checking A mailbox command contains 1-u32 header + arguments. The "len" variable only contains the length of the arguments, but not the 1-u32 header. Include the length of header when checking the ring buffer space to prevent off-by-one error. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com>