cnic: ensure ulp_type is not negative