Skip to contentSkip to conversation

DSPBRIDGE: Revert removing all resources on proc detach

PATCH New Omar Ramirez Luna 1 participant 1 message Jun 3, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DSPBRIDGE: Revert removing all resources on proc detach

This patch changes removing all resources for the process context on processor detach, it only frees the dmm resources and let resource cleanup take care of the rest.

This regression was introduced with the following patch:
DSPBRIDGE: base image reload support after DSP error

---
 drivers/dsp/bridge/rmgr/proc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dsp/bridge/rmgr/proc.c +1 -1
index d4d20ae..43f2d29 100644
@@ -659,7 +659,7 @@ DSP_STATUS PROC_Detach(DSP_HPROCESSOR hProcessor)
 				(struct DRV_OBJECT *)hDRVObject, &pPctxt,
 					 NULL, 0);
 			if (pPctxt != NULL) {
-				DRV_RemoveAllResources(pPctxt);
+				DRV_ProcFreeDMMRes(pPctxt);
 				pPctxt->hProcessor = NULL;
 			}
 		}
Signature · 1 line
1.6.2.4