From fc461df2d577fa11c7840c70bcf3afd5986919a0 Mon Sep 17 00:00:00 2001 From: Lin Bai Date: Mon, 10 Aug 2020 18:37:46 +0800 Subject: [PATCH] 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 --- umac/green_ap/dispatcher/src/wlan_green_ap_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umac/green_ap/dispatcher/src/wlan_green_ap_api.c b/umac/green_ap/dispatcher/src/wlan_green_ap_api.c index 70cd45b0b1d7..7fa69dceb56d 100644 --- a/umac/green_ap/dispatcher/src/wlan_green_ap_api.c +++ b/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; }