summaryrefslogtreecommitdiffstats
path: root/src/vpp-api-test.am
diff options
context:
space:
mode:
authorSteven <sluong@cisco.com>2018-01-08 09:24:04 -0800
committerDamjan Marion <dmarion.lists@gmail.com>2018-01-09 20:20:13 +0000
commit8554f8adcc97b10eee674762307bfb2ede76d722 (patch)
tree4151f47bfd47bb069a87346576c54b889fbada03 /src/vpp-api-test.am
parent6f1e8b9947ec23b524f340da035c37c07938c268 (diff)
memif: fix coverity divide by zero
Coverity complains about divide by zero if tx_queues gets the value of 0 from the macro vec_len(). While we don't anticipate such condition to happen, programming errors may exist. To defend against divide by zero, crash and burn if tx_queues gets a value of 0. Change-Id: I65e014c07e9d4adfe119d5b373b5dc24cb818a03 Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/vpp-api-test.am')
0 files changed, 0 insertions, 0 deletions