From ee70a49899b8c2fbcdbccd3469c965220e501d51 Mon Sep 17 00:00:00 2001 From: Chaithanya Garrepalli Date: Tue, 8 Jan 2019 18:25:30 +0530 Subject: [PATCH] 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 --- dp/wifi3.0/dp_wdi_event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dp/wifi3.0/dp_wdi_event.c b/dp/wifi3.0/dp_wdi_event.c index e133a74663..e50f67b152 100644 --- a/dp/wifi3.0/dp_wdi_event.c +++ b/dp/wifi3.0/dp_wdi_event.c @@ -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;