alloc_profile_is_valid
if (alloc_profile_is_valid(bargs->target, 1) &&
if (!alloc_profile_is_valid(type, 0)) {