Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c32a084 authored by Lin Bai's avatar Lin Bai Committed by snandini
Browse files

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
parent 978ac649
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * 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;
}