[PATCH 4.9 74/94] IB/hfi1: Invalid user input can result in crash