Files
linux/drivers
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
..
…
2009-02-18 17:41:38 -08:00
2009-02-02 23:26:57 -08:00
…
…
…
2009-02-18 15:37:56 -08:00
2009-01-29 18:04:43 -08:00
2009-03-04 21:49:14 +10:00
…
2009-02-26 10:32:31 -08:00
…
…
2009-02-25 13:18:47 +11:00
2009-02-27 16:26:22 -08:00
…
…
2009-02-02 19:53:02 +03:00
…
2009-02-11 14:25:36 -08:00
2009-03-12 12:58:02 -05:00
…
…
…
2009-02-18 15:37:56 -08:00
…
…
…
2009-03-12 12:58:02 -05:00
…
…
…