diff options
author | Jayamohan Kallickal <jayamohan.kallickal@emulex.com> | 2012-04-04 00:41:38 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-04-25 04:00:38 -0400 |
commit | 3ec7827134a976a3ffffd9e438b8d8dfd6eca9b7 (patch) | |
tree | 4dbe09ed1709e5937f08ae76012a25d272237da6 /drivers/scsi/be2iscsi/be_mgmt.h | |
parent | f2ba02b89a1bfccb152302fa01651e21d98e9d1b (diff) |
[SCSI] be2iscsi: WRB Initialization and Failure code path change
Removing code duplication during the WRB_Handle and WRB
initialization.
Added memory allocation failure handling code during WRB
initialization.
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_mgmt.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_mgmt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_mgmt.h b/drivers/scsi/be2iscsi/be_mgmt.h index 08428824ace2..d7fdfceb6564 100644 --- a/drivers/scsi/be2iscsi/be_mgmt.h +++ b/drivers/scsi/be2iscsi/be_mgmt.h | |||
@@ -219,9 +219,9 @@ struct be_mgmt_controller_attributes_resp { | |||
219 | /* the CMD_RESPONSE_HEADER */ | 219 | /* the CMD_RESPONSE_HEADER */ |
220 | 220 | ||
221 | #define ISCSI_GET_PDU_TEMPLATE_ADDRESS(pc, pa) {\ | 221 | #define ISCSI_GET_PDU_TEMPLATE_ADDRESS(pc, pa) {\ |
222 | pa->lo = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\ | 222 | pa->lo = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\ |
223 | bus_address.u.a32.address_lo; \ | 223 | bus_address.u.a32.address_lo; \ |
224 | pa->hi = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\ | 224 | pa->hi = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\ |
225 | bus_address.u.a32.address_hi; \ | 225 | bus_address.u.a32.address_hi; \ |
226 | } | 226 | } |
227 | 227 | ||