[PATCH 4.14 28/43] IB/hfi1: Fix NULL pointer dereference when invalid num_vls is used