scsi: mpt3sas: Fix double free warnings
authorSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Fri, 8 May 2020 11:07:38 +0000 (07:07 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 12 May 2020 03:08:42 +0000 (23:08 -0400)
commitcbbfdb2a2416c9f0cde913cf09670097ac281282
tree2b7866a1e79903d6b2de56eb496c653d44bd433a
parentc1bb43e23c4508654badfdac9ca79e4cca4c8b13
scsi: mpt3sas: Fix double free warnings

Fix following warning from Smatch static analyser:

drivers/scsi/mpt3sas/mpt3sas_base.c:5256 _base_allocate_memory_pools()
warn: 'ioc->hpr_lookup' double freed

drivers/scsi/mpt3sas/mpt3sas_base.c:5256 _base_allocate_memory_pools()
warn: 'ioc->internal_lookup' double freed

Link: https://lore.kernel.org/r/20200508110738.30732-1-suganath-prabu.subramani@broadcom.com
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c