]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] be2iscsi: fix memory leak in error path
authorGeyslan G. Bem <geyslan@gmail.com>
Mon, 18 Nov 2013 19:42:57 +0000 (16:42 -0300)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 17 Dec 2013 14:26:37 +0000 (06:26 -0800)
commit5be949f4c257314d15426d0255f823477405fb59
tree848cd2862001fe4db8fcf3d648bf538ec2e5cd7b
parent94382606134899b93b160acb683bc9ce8b82625c
[SCSI] be2iscsi: fix memory leak in error path

There are two memory leaks in cases 'ISCSI_NET_PARAM_VLAN_ID' and
'ISCSI_NET_PARAM_VLAN_PRIORITY' and also a potential junk pointer free if
mgmt_get_if_info() returns error because if_info will be unset and it is stack
allocated.

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Cc: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/be2iscsi/be_iscsi.c