Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1074471ybl; Wed, 14 Aug 2019 10:16:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqytDJTVZRdDNQ8xkLXlYgossWwoLOGcJoLHyl+5xzSOudH4hB3Y5ygrWJckJku1vozzufy+ X-Received: by 2002:a17:902:8302:: with SMTP id bd2mr451523plb.9.1565803010495; Wed, 14 Aug 2019 10:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565803010; cv=none; d=google.com; s=arc-20160816; b=UiR9g7EJEDQvmCojUyeeRcNbQKehJvqFSnUWJGxM5+HcFTRPdYZbuD1iTFGejbBZIz iVvPMH/IHK+5E8AwfzH6RrFbQSAcLmKvNZ9OctMPaMA1bxNycM0SuM2iJDM/nIWWzZ0L vB5dkKOPKYSqdZXR9b/rodaYauiCp+5juWYBff+P1vOLqsQnouJElNYkORGuxGD2VTy2 cw+tvGZEXEVM9HcYtqj96r92ZJQ3487+5WKGxMfBmnmMdZDkAc2CeS2qFSKhQuZ0r0CE YvVWnXgaNHBF28JknmaoCV2HjJLBUPO6eqkblhsqkf6ON2M0v/JEXTOFzYT2+VUse3Jx bHKw== 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=zjxGSOXZXS0SRqIITQCADH+Pug1XhPVKnZEDYZKkR9A=; b=E7MFYnYVetojZJBE7rYWX5tm1HrqIk8aB8rdSCtlJngRDrtRV61ECKU1eMkRQWZPHT vewyzhwIjKTEv3AilCp3pNOrATrlqVJ743GWvIewrG0YljE85I0vkzB6mXzLrlf0TfmZ gCv3tg9EIh5EVuo+RYeo5i39kjemJqe0zEtY8zbSgwNagWRBilss4qakn8f7EbhGHiZB BugwOY4o9QuCk1PQR1GQPVW/7UG7BBslBMhkewXEgs9tqpEOSq8qZ+/m+lIhkls9g8Wf O5sSfZ5lOZEpul1VNkbTCW/SB3GgDnj6DH5fjEcMtMgy13UQXIBpXXFjyjUfpYKJ6i6e KGyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rcy94BfT; 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 38si250752pla.216.2019.08.14.10.16.34; Wed, 14 Aug 2019 10:16:50 -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=Rcy94BfT; 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 S1730896AbfHNRQA (ORCPT + 99 others); Wed, 14 Aug 2019 13:16:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:39358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730855AbfHNROw (ORCPT ); Wed, 14 Aug 2019 13:14:52 -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 698572084D; Wed, 14 Aug 2019 17:14:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802891; bh=Qv50IEdhAdQ+YPsNhDeNXdQwrntJtPebEZKiD6idsXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rcy94BfTlApXb+Eiu5U19VT/XluvuAC6jwIljZ9gdTlRjt7g8hUVK+HmNztQkwOWH RtQN5QqIpODhe8pTRl1l1Qk0J1b05QGBocYco7eElZjLqzdd+vutvRqPo7IX8mlQE3 olfrIhijxupBgCpl4yBuJ3XMr7snMButmpOYtvuQ= 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.14 66/69] iwlwifi: dont unmap as page memory that was mapped as single Date: Wed, 14 Aug 2019 19:02:04 +0200 Message-Id: <20190814165750.465849264@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165744.822314328@linuxfoundation.org> References: <20190814165744.822314328@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 @@ -401,6 +401,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;