Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1077937ybl; Wed, 14 Aug 2019 10:20:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqoMQ63Q5YcqIBHRwcKXJUwE+AEH4ttIjU2N7yEMxyPGs36qg3MG1hcXI7e4cg5+l/3kt7 X-Received: by 2002:a17:902:ac88:: with SMTP id h8mr408252plr.77.1565803202617; Wed, 14 Aug 2019 10:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565803202; cv=none; d=google.com; s=arc-20160816; b=IYv01OZwMhTgj2kzC7e80tIIGVp+U4EuUWQ0QJ8VfcV37b7X6sUG69Eo+uEby4Jew1 kxfy76F3XJ7VKfbPNSDnZLxYG2ylBBSFlh5Vcgcr7B/C+EjM4OhOveNc5h8CloQjfvNJ 8xr5MB6JWNF5VXh6ouR9Pmp3ACjiOuuns8yQXW+3YHsA5bzxAdCI+vP7TuHoxTFP/wCW i7FP6Nz/VngZ3mF7EWGlLwFQGGgvGmmGxu+zjjTAoxWEBE/N4fXGpvoN2BKXYvFIoDQX GiEEcoNtODaoDqeqyMhey18LwGMiIedEZhlQov7AcaAuMfrqMwfoG8wOqTkv96rqVnje gdFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hASIOuD+YGqFfU1X41TfiQCZ9t7DTwiaffLX+qPCyCU=; b=BtPoRfVfjXNS672TY/1ZoD/vwcPwGJgQjLG7dYP+bG7MQ16hCepwYlht6ovDOzcE3c V1eiwlKmr/Seuq6myJAbP/IGjMx6RyW44GPpoOgkxyXAihHB24ae7lvD3KuDmrrXV0j8 +JSmzQ4qmGkAiMAy0BrpuqGxGaBJvrMYWogO0auuNU3Ra3GgK4jiClU2AJwX5lTXma9c cuYe+pKFp86P4Sf4Uzy2YKBPF0mPRAoeTd6+ksvanVQdD+VBfGXC67A/9bbRchL/uDyp PG+9zxynSFWab6VfX/Qedn3vyeO3+y1UYoPs/wOGi+ZHdTppW4Mzng/voPzCRkWrNd7b CXXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lIG2V2QM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18si267409pls.125.2019.08.14.10.19.46; Wed, 14 Aug 2019 10:20:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lIG2V2QM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728886AbfHNRTQ (ORCPT + 99 others); Wed, 14 Aug 2019 13:19:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:35442 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730635AbfHNRLy (ORCPT ); Wed, 14 Aug 2019 13:11:54 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A08622063F; Wed, 14 Aug 2019 17:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802713; bh=LKkqE582/S6sATCM3lFIxeJcT/BwhZU8XuQuYvGVD4w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lIG2V2QMifbgg7ln2rJ/L9sHm91xbl/grrjcJg9a0NGiyL3gXndHPazEpPu50yjUT 71oXDfwr252ifd8hel1Vl/kSzTFmLTUKr/7+X3MgaB23Ucz353b1M1p4Nqs9lXfE+9 kr+RtiOUy2oS9gbsnkxjv7FDjOfYXrDU7Qj0D9zA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Emmanuel Grumbach , Johannes Berg Subject: [PATCH 4.19 88/91] iwlwifi: dont unmap as page memory that was mapped as single Date: Wed, 14 Aug 2019 19:01:51 +0200 Message-Id: <20190814165753.938454228@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165748.991235624@linuxfoundation.org> References: <20190814165748.991235624@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emmanuel Grumbach commit 87e7e25aee6b59fef740856f4e86d4b60496c9e1 upstream. In order to remember how to unmap a memory (as single or as page), we maintain a bit per Transmit Buffer (TBs) in the meta data (structure iwl_cmd_meta). We maintain a bitmap: 1 bit per TB. If the TB is set, we will free the memory as a page. This bitmap was never cleared. Fix this. Cc: stable@vger.kernel.org Fixes: 3cd1980b0cdf ("iwlwifi: pcie: introduce new tfd and tb formats") Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/tx.c @@ -403,6 +403,8 @@ static void iwl_pcie_tfd_unmap(struct iw DMA_TO_DEVICE); } + meta->tbs = 0; + if (trans->cfg->use_tfh) { struct iwl_tfh_tfd *tfd_fh = (void *)tfd;