Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] be2iscsi: Fix the function return values.

Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
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>

authored by

Jayamohan Kallickal and committed by
James Bottomley
a49e06d5 db7f7709

+3 -4
+3 -4
drivers/scsi/be2iscsi/be_main.c
··· 541 541 &mbox_mem_alloc->dma); 542 542 if (!mbox_mem_alloc->va) { 543 543 beiscsi_unmap_pci_function(phba); 544 - status = -ENOMEM; 545 - return status; 544 + return -ENOMEM; 546 545 } 547 546 548 547 mbox_mem_align->size = sizeof(struct be_mcc_mailbox); ··· 3208 3209 error: 3209 3210 shost_printk(KERN_ERR, phba->shost, "hwi_init_port failed"); 3210 3211 hwi_cleanup(phba); 3211 - return -ENOMEM; 3212 + return status; 3212 3213 } 3213 3214 3214 3215 static int hwi_init_controller(struct beiscsi_hba *phba) ··· 3283 3284 3284 3285 free_init: 3285 3286 beiscsi_free_mem(phba); 3286 - return -ENOMEM; 3287 + return ret; 3287 3288 } 3288 3289 3289 3290 static int beiscsi_init_sgl_handle(struct beiscsi_hba *phba)