MFC r354728: Prevent potential underflow in ibcore.
Linux commit: a9018adfde809d44e71189b984fa61cc89682b5e
Sponsored by: Mellanox Technologies