Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e41443ec authored by Mike Anderson's avatar Mike Anderson Committed by James Bottomley
Browse files

[SCSI] sym53c8xx: free luntbl in sym_hcb_free



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.

Signed-off-by: default avatarMike Anderson <andmike@linux.vnet.ibm.com>
Cc: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 773e82f6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5741,6 +5741,8 @@ void sym_hcb_free(struct sym_hcb *np)

	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