Эх сурвалжийг харах

msm: adsprpc: Revert for buffer memset after ramdump collection

Revert for buffer memset after ramdump collection
as removing ramdump collection node from list after
use removes the previous ramdump data from elf,
resetting buffer is not needed.

Change-Id: I976296a56aeba3f2bb646146cfc6c846671a76ee
Acked-by: Ansa Ahmed <[email protected]>
Signed-off-by: Suyash Nahata <[email protected]>
Vamsi Krishna Gattupalli 2 жил өмнө
parent
commit
fe561077f0

+ 1 - 5
drivers/char/adsprpc.c

@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
  */
 
 /* Uncomment this block to log an error on every VERIFY failure */
@@ -2480,10 +2480,6 @@ static void fastrpc_ramdump_collection(int cid)
 			spin_unlock_irqrestore(&me->hlock, irq_flags);
 		}
 	}
-	spin_lock(&fl->hlock);
-	if (chan->buf)
-		memset(chan->buf->virt, 0, MINI_DUMP_DBG_SIZE);
-	spin_unlock(&fl->hlock);
 }
 
 static void fastrpc_notify_drivers(struct fastrpc_apps *me, int cid)