mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 16:50:53 +07:00
a71d035de8
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> |
||
---|---|---|
.. | ||
Makefile | ||
sym53c8xx.h | ||
sym_defs.h | ||
sym_fw1.h | ||
sym_fw2.h | ||
sym_fw.c | ||
sym_fw.h | ||
sym_glue.c | ||
sym_glue.h | ||
sym_hipd.c | ||
sym_hipd.h | ||
sym_malloc.c | ||
sym_misc.h | ||
sym_nvram.c | ||
sym_nvram.h |