Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1819386pxb; Thu, 16 Sep 2021 16:52:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtDQAron5RWerL1yGFAn6MBdlt2rEJYI35wBpfalvbSIxIUn3o9O/Ay/AlkbJA5Pb4DjSs X-Received: by 2002:a02:664c:: with SMTP id l12mr6391017jaf.140.1631836327553; Thu, 16 Sep 2021 16:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631836327; cv=none; d=google.com; s=arc-20160816; b=iKtjxGmONK+tl5OZLwSSthWgNvCjYcjQi2ikF8UxwZDvJjKoCHz3pcGx2bBegSgvRR DZ9fqM85+G7adbKz6J9R0naiMLUbYNDypyoAmU3SqHJD0lk47DeMqzK4UbtZcbWKyl00 Iy6xliwpmcvN7crwX2RyvZOChgbcE+BnXUX9wZBXRpbhhNvrDi0eaQ75blal8CMKHu+z VmsKsVJD+UfGDeoI/Defr0xl0Jlsb0hCP8qLj+4lHAm3qpDJnfjib2yBgFTUYvsyY9A3 pbRYM9G8F+9uvAAU/xYo/fex9dWPsdDzWq61HKIHK/daSZW0cjUA9u4kZ42oxryc2ZK+ l3nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EJ0P1B4wtnh4CM/hxEkftzfmhBqADwhjjv2Y20nqEs8=; b=G/6ot8WYNBzZEQZN9R0XuCea0LkO8chmgkHNX+biJAGWHRKAl8W/qRtYvhmxmliPYr 6LKoumOU4ycB9VuTHcckfuvNrvKqmeEPxaSLEyqgemsmBsaVVju/7BvnYNTPHBJ6oa9j vwFywbZTXWTFNh+G1fhpNRoELxwKdWb6+LoV1JwW8dxmIGVS+DN1+YNmk0C9nylcJEAr qfDLg8HmlkeozdKVJCdtJfUEL4lZlkd151zNZrVYwir2qmatABf7p3SRWzY7D2UoGsPR 8PmkrEbDIsc0SI7n884c3PfSOGO6fBicmhs7c2NwHGRhvoukLyBIDXDg5LnxF1mnuzy4 eU4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oiU8CPPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r2si3678130ila.178.2021.09.16.16.51.56; Thu, 16 Sep 2021 16:52:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oiU8CPPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350353AbhIPRJp (ORCPT + 99 others); Thu, 16 Sep 2021 13:09:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:51638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347306AbhIPQ6p (ORCPT ); Thu, 16 Sep 2021 12:58:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9E1306137D; Thu, 16 Sep 2021 16:31:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809919; bh=cp4aSFPOVoAmW7bC4hEc24SYlKqIiehUK6guMD+qXfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oiU8CPPUErOFPbekf7NzoICb5vZVJ7YsJnPayBJmOjK59M3G48yxZNxAgThcIQqdJ Zva5kI9Mj5sOZoFO3pMb8xPGkLnORTkyBiqrY/Otx9djQhONDnD9J5Tr5hOazBVycI YPlAO27G498vwOnXkIX5V9yXGpDCB38FvK5e6bGs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Luca Coelho , Sasha Levin Subject: [PATCH 5.13 332/380] iwlwifi: fw: correctly limit to monitor dump Date: Thu, 16 Sep 2021 18:01:29 +0200 Message-Id: <20210916155815.342312400@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg [ Upstream commit e6344c060209ef4e970cac18adeac1676a2a73cd ] In commit 79f033f6f229 ("iwlwifi: dbg: don't limit dump decisions to all or monitor") we changed the code to pass around a bitmap, but in the monitor_only case, one place accidentally used the bit number, not the bit mask, resulting in CSR and FW_INFO getting dumped instead of monitor data. Fix that. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20210805141826.774fd8729a33.Ic985a787071d1c0b127ef0ba8367da896ee11f57@changeid Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c index cc4e18ca9566..a27849419d29 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c @@ -2314,7 +2314,7 @@ static void iwl_fw_error_dump(struct iwl_fw_runtime *fwrt, return; if (dump_data->monitor_only) - dump_mask &= IWL_FW_ERROR_DUMP_FW_MONITOR; + dump_mask &= BIT(IWL_FW_ERROR_DUMP_FW_MONITOR); fw_error_dump.trans_ptr = iwl_trans_dump_data(fwrt->trans, dump_mask); file_len = le32_to_cpu(dump_file->file_len); -- 2.30.2