be2iscsi: Fix memory leak in beiscsi_alloc_mem()
authorMaurizio Lombardi <mlombard@redhat.com>
Thu, 1 Oct 2015 08:56:25 +0000 (10:56 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commit0c88740dd2070b9af924ab092d5992ece6d90f4c
treeea572ecf5db72b0c765467ca61ba7ccbadd745eb
parenta230c2f6363c3fee8b6280b0732d7eb17554a4ca
be2iscsi: Fix memory leak in beiscsi_alloc_mem()

In case of error, the memory allocated for phwi_ctrlr was not freed.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_main.c