]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
scsi: lpfc: avoid double free of resource identifiers
authorRoberto Sassu <rsassu@suse.de>
Wed, 11 Jan 2017 10:06:42 +0000 (11:06 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 19 Jul 2017 07:59:04 +0000 (09:59 +0200)
commitef6bd061df6f8d3cc4e453313d5895a5327383a4
treeae554a03a94053a42e9527518cbdb14db6203b4e
parent31ae9fc45b170a74189637bf485c7ca3e7ddc4b1
scsi: lpfc: avoid double free of resource identifiers

BugLink: http://bugs.launchpad.net/bugs/1702863
[ Upstream commit cd60be4916ae689387d04b86b6fc15931e4c95ae ]

Set variables initialized in lpfc_sli4_alloc_resource_identifiers() to
NULL if an error occurred. Otherwise, lpfc_sli4_driver_resource_unset()
attempts to free the memory again.

Signed-off-by: Roberto Sassu <rsassu@suse.de>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/scsi/lpfc/lpfc_sli.c