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
This commit is contained in:
Lin Bai 2020-08-10 18:37:46 +08:00 • committed by snandini
commit fc461df2d5

View file

@ -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;
}