Commit be91b09
scsi: lpfc: avoid double free of resource identifiers
[ 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>1 parent 4ac60b2 commit be91b09
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5887 | 5887 | | |
5888 | 5888 | | |
5889 | 5889 | | |
| 5890 | + | |
5890 | 5891 | | |
5891 | 5892 | | |
| 5893 | + | |
5892 | 5894 | | |
5893 | 5895 | | |
| 5896 | + | |
5894 | 5897 | | |
5895 | 5898 | | |
| 5899 | + | |
5896 | 5900 | | |
5897 | 5901 | | |
| 5902 | + | |
5898 | 5903 | | |
5899 | 5904 | | |
| 5905 | + | |
5900 | 5906 | | |
5901 | 5907 | | |
| 5908 | + | |
5902 | 5909 | | |
5903 | 5910 | | |
5904 | 5911 | | |
| |||
0 commit comments