[PATCH 5.18 522/879] hinic: Avoid some over memory allocation