* [PATCH 03/21] lpfc 8.3.33: Fix bug with rrq_pool not being destroyed during driver removal.
@ 2012-08-03 16:34 James Smart
0 siblings, 0 replies; only message in thread
From: James Smart @ 2012-08-03 16:34 UTC (permalink / raw)
To: linux-scsi
Fix bug with rrq_pool not being destroyed during driver removal.
Signed-off-by: James Smart <james.smart@emulex.com>
---
lpfc_mem.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff -upNr a/drivers/scsi/lpfc/lpfc_mem.c b/drivers/scsi/lpfc/lpfc_mem.c
--- a/drivers/scsi/lpfc/lpfc_mem.c 2012-07-22 10:46:05.000000000 -0400
+++ b/drivers/scsi/lpfc/lpfc_mem.c 2012-07-22 11:35:20.060631883 -0400
@@ -1,7 +1,7 @@
/*******************************************************************
* This file is part of the Emulex Linux Device Driver for *
* Fibre Channel Host Bus Adapters. *
- * Copyright (C) 2004-2009 Emulex. All rights reserved. *
+ * Copyright (C) 2004-2012 Emulex. All rights reserved. *
* EMULEX and SLI are trademarks of Emulex. *
* www.emulex.com *
* Portions Copyright (C) 2004-2005 Christoph Hellwig *
@@ -194,6 +194,10 @@ lpfc_mem_free(struct lpfc_hba *phba)
pci_pool_destroy(phba->lpfc_hbq_pool);
phba->lpfc_hbq_pool = NULL;
+ if (phba->rrq_pool)
+ mempool_destroy(phba->rrq_pool);
+ phba->rrq_pool = NULL;
+
/* Free NLP memory pool */
mempool_destroy(phba->nlp_mem_pool);
phba->nlp_mem_pool = NULL;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-03 16:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-03 16:34 [PATCH 03/21] lpfc 8.3.33: Fix bug with rrq_pool not being destroyed during driver removal James Smart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox