linux_dsm_epyc7002/drivers/scsi/sym53c8xx_2
Tony Battersby a71d035de8 [SCSI] sym53c8xx: unmap pci memory after probe errors
During sym2_probe(), sym_init_device() does pci_iomap(), but there is
no corresponding pci_iounmap() if an error occurs before sym_attach()
copies sym_device::s.{ioaddr,ramaddr} to np.
1) Add the sym_iounmap_device() function.
2) Call sym_iounmap_device() if an error occurs between
   sym_init_device() and the time sym_attach() allocates np.
3) Make sym_attach() copy sym_device::s.{ioaddr,ramaddr} to np before
   calling any function that can fail so that sym_free_resources()
   will do the unmap instead of sym_iounmap_device().

Also fixed by this patch:
During sym2_probe(), if sym_check_raid() returns nonzero, then
pci_release_regions() is never called.

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2009-03-12 12:58:16 -05:00
..
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sym53c8xx.h [SCSI] sym53c8xx: Remove tag_ctrl module parameter 2007-10-23 15:11:57 -04:00
sym_defs.h [SCSI] Version 2.2.3 2006-04-13 10:13:26 -05:00
sym_fw1.h Fix misspellings of "agressive". 2007-02-17 19:20:16 +01:00
sym_fw2.h Spelling fix: explicitly 2007-10-19 23:22:55 +02:00
sym_fw.c [SCSI] sym53c8xx: Remove pci_dev pointer from sym_shcb 2007-10-23 15:26:34 -04:00
sym_fw.h [SCSI] sym53c8xx: Remove pci_dev pointer from sym_shcb 2007-10-23 15:26:34 -04:00
sym_glue.c [SCSI] sym53c8xx: unmap pci memory after probe errors 2009-03-12 12:58:16 -05:00
sym_glue.h [SCSI] sym53c8xx: Remove sym_xpt_async_sent_bdr 2007-10-23 15:26:56 -04:00
sym_hipd.c [SCSI] sym53c8xx: Keep transfer negotiations valid 2009-03-12 12:57:57 -05:00
sym_hipd.h [SCSI] sym53c8xx: Keep transfer negotiations valid 2009-03-12 12:57:57 -05:00
sym_malloc.c [SCSI] sym2: Remove FreeBSD ifdefs 2005-12-13 18:11:27 -07:00
sym_misc.h [SCSI] sym53c8xx: Fix bogus sym_que_entry re-implementation of container_of 2008-07-12 08:22:37 -05:00
sym_nvram.c [SCSI] sym53c8xx: Remove ->device_id 2007-10-23 15:11:10 -04:00
sym_nvram.h [SCSI] sym2: Allow NVRAM settings to limit speed and width 2005-12-13 18:11:45 -07:00