[arbel] Assert that mapping length is non-zero
authorMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 13:18:54 +0000 (15:18 +0200)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 13:18:54 +0000 (15:18 +0200)
commit0ced99e97c59e193eb7b1313fbb4473c720c59dc
tree8bef2e0c1c72c3f5a272a60a6a7dcba50d0f416e
parent7495813792c13f8095053bffe7b362e09df99d83
[arbel] Assert that mapping length is non-zero

An (impossible) mapping length of zero produces a negative bit shift,
which is technically undefined.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/arbel.c