Pārlūkot izejas kodu

qcacmn: Avoid accessing freed pdev pointer

It is possible pdev already be freed in previous
wlan_objmgr_pdev_component_obj_detach function.
Here avoid to print this pointer again.

Change-Id: I8618eec1c0a9f493141d0191a9a3e6c0a08305dd
CRs-Fixed: 2751813
Lin Bai 4 gadi atpakaļ
vecāks
revīzija
fc461df2d5
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      umac/green_ap/dispatcher/src/wlan_green_ap_api.c

+ 2 - 2
umac/green_ap/dispatcher/src/wlan_green_ap_api.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -156,7 +156,7 @@ static QDF_STATUS wlan_green_ap_pdev_obj_destroy_notification(
 	qdf_spinlock_destroy(&green_ap_ctx->lock);
 
 	qdf_mem_free(green_ap_ctx);
-	green_ap_info("green ap deletion successful, pdev: %pK", pdev);
+	green_ap_info("green ap deletion successful");
 
 	return QDF_STATUS_SUCCESS;
 }