bfa: fix bfa_fcb_itnim_alloc() error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Apr 2016 11:14:41 +0000 (14:14 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 May 2016 02:18:42 +0000 (22:18 -0400)
commit4e51af9ee7afa0ecf4829e7a44f7055db7968e02
tree4854217bf3a1b824d399753b984b50eddc04e372
parent13f307711b127d30fcf333a04365a217baf9ca2b
bfa: fix bfa_fcb_itnim_alloc() error handling

The caller assumes that "itnim" is NULL on error and non-NULL on success
but really "itnim" is uninitialized on error.  This function should just
use normal error handling where it returns zero on success and negative
on failure.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Anil Gurumurthy <anil.gurumurthy@qlogic.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfa_fcs.h
drivers/scsi/bfa/bfa_fcs_fcpim.c
drivers/scsi/bfa/bfad_im.c