[SCSI] be2iscsi: fix memory leak on error path
commit1462b8ffd9a9e4798d4e0f9eaadbd1ac0373a11b
authorDan Carpenter <error27@gmail.com>
Thu, 10 Jun 2010 07:52:21 +0000 (10 09:52 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:01:41 +0000 (27 12:01 -0500)
tree5871d70365de8c83edaf199c59a085ec8fd96558
parentc5f10187965f93ef7ef67da9c7c449b13b6dee1b
[SCSI] be2iscsi: fix memory leak on error path

I added a kfree(pwrb_arr) in front of the return.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/be2iscsi/be_main.c