[PATCH 6.1 146/885] lib/mpi: Fix buffer overrun when SG is too long