]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2iscsi: Fix MCC WRB leak in open_connection
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>
Thu, 4 Feb 2016 10:19:16 +0000 (15:49 +0530)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 15:21:56 +0000 (07:21 -0800)
commitb2fdcdaa77b93ed18f12fdae8530e982b5afd08c
tree8275e0d091b5daa8f5a0942a054b35ba2dc9cba7
parent2b6afbb4fb05ad7b59af89854aee098bb1635de2
be2iscsi: Fix MCC WRB leak in open_connection

Orabug: 22725588

In open with IP of unknown address family, only tag is freed and error
returned. MCC WRB allocated for the operation is not freed.

Added check for supported family of IP in the beginning before
allocating the tag and WRB.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/scsi/be2iscsi/be_mgmt.c