summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLey Foon Tan <ley.foon.tan@intel.com>2019-04-24 08:21:47 +0300
committerMarek Vasut <marex@denx.de>2019-04-25 01:00:49 +0300
commitbf068c7643f23c3f0936e3d1d292cc537acaf3bb (patch)
treef010dc32ca2b5499bbac29d32ddb4b856c4e9400 /drivers
parent4aab2329b282956b3a8a22de7bd30116d1c8df20 (diff)
downloadu-boot-bf068c7643f23c3f0936e3d1d292cc537acaf3bb.tar.xz
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions