Skip to contentSkip to conversation

sym53c8xx_2: free luntbl in sym_hcb_free

PATCH New Mike Anderson 1 participant 1 message Jul 21, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sym53c8xx_2: free luntbl in sym_hcb_free

From: Mike Anderson <[email protected]>

This patch frees the luntbl dma area in sym_hcb_free if allocated. Since the luntbl is part of a larger dma coherent area not freeing the luntbl kept a 64k dma coherent area previous allocated through dma_alloc_coherent allocated. This prevented a DLPAR remove IO operation from completing successfully.

---

 drivers/scsi/sym53c8xx_2/sym_hipd.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/scsi/sym53c8xx_2/sym_hipd.c +2 -0
Index: linux-2.6-combined/drivers/scsi/sym53c8xx_2/sym_hipd.c
===================================================================
@@ -5741,6 +5741,8 @@
 
 	for (target = 0; target < SYM_CONF_MAX_TARGET ; target++) {
 		tp = &np->target[target];
+		if (tp->luntbl)
+			sym_mfree_dma(tp->luntbl, 256, "LUNTBL");
 #if SYM_CONF_MAX_LUN > 1
 		kfree(tp->lunmp);
 #endif