qcacmn: do not process WDI event after pdev deinit

Avoid processing WDI events for a pdev after pdev deinit

Change-Id: If57082cf2cadf92ab3cf2cb9485c7546b118aa0b
CRs-fixed: 2377503
This commit is contained in:
Chaithanya Garrepalli
2019-01-08 18:25:30 +05:30
committed by nshrivas
parent eff377a1d3
commit ee70a49899

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2019 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
@@ -126,7 +126,7 @@ dp_wdi_event_handler(
"Invalid WDI event in %s", __func__);
return;
}
if (!txrx_pdev) {
if (!txrx_pdev || txrx_pdev->pdev_deinit) {
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
"Invalid pdev in WDI event handler");
return;