if (array_entry->dev_res_addr.bus >= IPR_MAX_NUM_BUSES) {
if (array_entry->expected_dev_res_addr.bus >= IPR_MAX_NUM_BUSES) {
static void ipr_log_array_error(struct ipr_ioa_cfg *ioa_cfg,				struct ipr_hostrcb *hostrcb){	int i;	struct ipr_hostrcb_type_04_error *error;	struct ipr_hostrcb_array_data_entry *array_entry;	const u8 zero_sn[IPR_SERIAL_NUM_LEN] = { [0 ... IPR_SERIAL_NUM_LEN-1] = '0' };	error = &hostrcb->hcam.u.error.u.type_04_error;	ipr_err_separator;	ipr_err("RAID %s Array Configuration: %d:%d:%d:%d\n",		error->protection_level,		ioa_cfg->host->host_no,		error->last_func_vset_res_addr.bus,		error->last_func_vset_res_addr.target,		error->last_func_vset_res_addr.lun);	ipr_err_separator;	array_entry = error->array_member;	for (i = 0; i < 18; i++) {		if (!memcmp(array_entry->serial_num, zero_sn, IPR_SERIAL_NUM_LEN))			continue;		if (be32_to_cpu(error->exposed_mode_adn) == i) {			ipr_err("Exposed Array Member %d:\n", i);		} else {			ipr_err("Array Member %d:\n", i);		}		ipr_log_vpd(&array_entry->vpids, array_entry->serial_num);		if (array_entry->dev_res_addr.bus >= IPR_MAX_NUM_BUSES) {			ipr_err("Current Location: unknown\n");		} else {			ipr_err("Current Location: %d:%d:%d:%d\n",				ioa_cfg->host->host_no,				array_entry->dev_res_addr.bus,				array_entry->dev_res_addr.target,				array_entry->dev_res_addr.lun);		}		if (array_entry->dev_res_addr.bus >= IPR_MAX_NUM_BUSES) {			ipr_err("Expected Location: unknown\n");		} else {			ipr_err("Expected Location: %d:%d:%d:%d\n",				ioa_cfg->host->host_no,				array_entry->expected_dev_res_addr.bus,				array_entry->expected_dev_res_addr.target,				array_entry->expected_dev_res_addr.lun);		}		ipr_err_separator;		if (i == 9)			array_entry = error->array_member2;		else			array_entry++;	}}