[PATCH] IB/hfi1: Fix incorrect mixing of ERR_PTR and NULL return values