From 847342e0133d6f9d6c1de13a2d5a945cd22302d7 Mon Sep 17 00:00:00 2001 From: Gururaj Pandurangi Date: Tue, 26 Nov 2019 17:47:49 -0800 Subject: [PATCH] qcacld-3.0: Remove logs in csr_nonscan_active_ll_peek_head Remove logs in csr_nonscan_active_ll_peek_head to prevent excessive logging while testing CVE-2017-0624 Change-Id: Ie5ab57d36fc05a3eac0d4fdba33a72b11eb7c561 CRs-Fixed: 2573914 --- core/sme/src/csr/csr_util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 06002ddb67a3..4939aa99a0aa 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -444,10 +444,9 @@ tListElem *csr_nonscan_active_ll_peek_head(struct mac_context *mac_ctx, cmd = wlan_serialization_peek_head_active_cmd_using_psoc(mac_ctx->psoc, false); - if (!cmd) { - sme_err("No cmd found"); + if (!cmd) return NULL; - } + sme_cmd = cmd->umac_cmd; return &sme_cmd->Link;