[PATCH 4.18 163/228] IB/hfi1: Invalid user input can result in crash