[PATCH 4.14 106/137] IB/hfi1: Invalid user input can result in crash