svm: fix fifo max writeable chunk computation

Type:fix

Change-Id: I60fdd7651a3d3fac505e7aec7a41f9d096022895
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit fcd26a039409e2697a6797e74b0c45544503e853)
This commit is contained in:
Florin Coras
2019-08-08 12:57:48 -07:00
committed by Dave Wallace
parent 0f0ff02a93
commit 58e95bc2cd

View File

@ -650,7 +650,7 @@ svm_fifo_max_write_chunk (svm_fifo_t * f)
{
u32 head, tail;
f_load_head_tail_prod (f, &head, &tail);
return tail > head ? f->size - tail : f_free_count (f, head, tail);
return tail >= head ? f->size - tail : f_free_count (f, head, tail);
}
static inline u8 *