mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 18:40:53 +07:00
NetXen: Driver unload fixes
Signed-off-by: Amit S. Kale <amitkale@netxen.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
fa30248421
commit
9de0661066
@ -242,10 +242,11 @@ int netxen_nic_hw_resources(struct netxen_adapter *adapter)
|
||||
adapter->cmd_consumer = (uint32_t *) (((char *)addr) +
|
||||
sizeof(struct netxen_ring_ctx));
|
||||
|
||||
addr = pci_alloc_consistent(adapter->ahw.pdev,
|
||||
sizeof(struct cmd_desc_type0) *
|
||||
adapter->max_tx_desc_count,
|
||||
(dma_addr_t *) & hw->cmd_desc_phys_addr);
|
||||
addr = netxen_alloc(adapter->ahw.pdev,
|
||||
sizeof(struct cmd_desc_type0) *
|
||||
adapter->max_tx_desc_count,
|
||||
(dma_addr_t *) & hw->cmd_desc_phys_addr,
|
||||
&adapter->ahw.cmd_desc_pdev);
|
||||
printk("cmd_desc_phys_addr: 0x%llx\n", (u64) hw->cmd_desc_phys_addr);
|
||||
|
||||
if (addr == NULL) {
|
||||
|
@ -1155,8 +1155,8 @@ static void __exit netxen_exit_module(void)
|
||||
/*
|
||||
* Wait for some time to allow the dma to drain, if any.
|
||||
*/
|
||||
destroy_workqueue(netxen_workq);
|
||||
pci_unregister_driver(&netxen_driver);
|
||||
destroy_workqueue(netxen_workq);
|
||||
}
|
||||
|
||||
module_exit(netxen_exit_module);
|
||||
|
Loading…
Reference in New Issue
Block a user