Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp54398ybg; Mon, 8 Jun 2020 16:15:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzojEzfvn4L5when6DCKnlSWI0oH8rqdHdc5wQgX+ybuweS9GrckuaFvrsCP7CBwIWDpDE5 X-Received: by 2002:a17:906:7c58:: with SMTP id g24mr24277098ejp.205.1591658107351; Mon, 08 Jun 2020 16:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591658107; cv=none; d=google.com; s=arc-20160816; b=BxBZnRLHLPeZE5mr8hK5rafpOtZ0w2rQLb2zfxFyAUr1OkFTzQ333/cYyBVOXorWXx Dq+GLmJoR7fAy7oKRA7+1Sq5VxtyxaCC7BtAi6GtwwO+YuRRA0g8wg4ixsOHTEhn26yI AX3P1lkSabRjDTLYqc9xXhwlxWebdsf5Z/atJoybDeZ3xNPrib2g7hr2cgX3gF8Mp/Zn pxJu2azJKetpDZhz3paoRruMhL0sEA/V8yPkQLC4O3HW5HED6je/AnhWN8lTzr4AExjg 7+NRDQy9NHMWPhuP2nzE/am35QvD3zzX9vkMNjUqeByJYOZuJEAJFZrFCuRbzYP1HvdX 0M2A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xzrWxwrjQXlm40uO5AAzKnTyAAiJZoBKD45846eYcj8=; b=oZZosgK6bR3f0uoGi3JOn8tfINjwbdLEo/hERoGZ9kP7Ek/QxON2SvK2vngH8vGmGf 6dwnkjgWdp9zE/KtSQZmGizErynYyGZO++0HtzmhZHYhqaogs6fJb6H6N4TlYJqEvUar TQ++4uSDccsscIDxXARTdNknHbFMvVbED2arB+vLv+xD7aOPddKc5S+Y7ZXpjMtGG4SV 8uUtkVMZuEfPJA2HK/t8VY0TpuCCoNPUVadcCehgc8SyicU7CtxVbMwuJEfLA740fAaj EMOFq4ANZYAnIesB+jp9bHLbGDnIF1+v22W8/jDOoFBjU88yr0q6QLpvu4oxvI1sCV1T j2kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PKn5jX7d; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si9849960edq.164.2020.06.08.16.14.44; Mon, 08 Jun 2020 16:15: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=@kernel.org header.s=default header.b=PKn5jX7d; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727889AbgFHXJ4 (ORCPT + 99 others); Mon, 8 Jun 2020 19:09:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:54482 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728282AbgFHXIz (ORCPT ); Mon, 8 Jun 2020 19:08:55 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1A9BB208B6; Mon, 8 Jun 2020 23:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657734; bh=fe6JlMkedmaY+Fx6mlPmGF1n1tIJcCuXDwOukd/h1yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PKn5jX7dIGmba3l9J/1JuUoIlobHcVR7Y24KQowsnG2bojfmF6gOU7LXjMlYQBYbL kn8RberEpnIz4gtEQnTWPZrCcFgV9+BFBMBdNi9V6KJRle2wuoG7rv5azTsWftpgDl BvXLQrJw8nmg0k3z+XPfo3BIjgEfthyOSuQjYrUk= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wei Yongjun , Kalle Valo , Sasha Levin , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.7 125/274] ath11k: use GFP_ATOMIC under spin lock Date: Mon, 8 Jun 2020 19:03:38 -0400 Message-Id: <20200608230607.3361041-125-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Yongjun [ Upstream commit 69c93f9674c97dc439cdc0527811f8ad104c2e35 ] A spin lock is taken here so we should use GFP_ATOMIC. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Wei Yongjun Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200427092417.56236-1-weiyongjun1@huawei.com Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath11k/dp_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c index f74a0e74bf3e..34b1e8e6a7fb 100644 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -892,7 +892,7 @@ int ath11k_peer_rx_tid_setup(struct ath11k *ar, const u8 *peer_mac, int vdev_id, else hw_desc_sz = ath11k_hal_reo_qdesc_size(DP_BA_WIN_SZ_MAX, tid); - vaddr = kzalloc(hw_desc_sz + HAL_LINK_DESC_ALIGN - 1, GFP_KERNEL); + vaddr = kzalloc(hw_desc_sz + HAL_LINK_DESC_ALIGN - 1, GFP_ATOMIC); if (!vaddr) { spin_unlock_bh(&ab->base_lock); return -ENOMEM; -- 2.25.1