Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1768lqb; Tue, 28 May 2024 07:22:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOGhYFdX7JclDvkjvHpc07i/4errn0ZxfU4FkKnz7MriWNwj8i9Z1ik9vsJw63LWqQQC5RD2KbaTq+IFgim+4RcH/C43s/Bc7oPp1Nnw== X-Google-Smtp-Source: AGHT+IExfSOe1EfdYXi5pT092YjFlf4/lV6U20A9SBmTi/nbL4CkWc4FjK8zg5qLrkeoFkMhTOq+ X-Received: by 2002:a17:906:79cd:b0:a5c:db60:903e with SMTP id a640c23a62f3a-a62642dccf3mr852332866b.37.1716906138087; Tue, 28 May 2024 07:22:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716906138; cv=pass; d=google.com; s=arc-20160816; b=rcpW9jOHvzR+tVroCHx2kggH2JJf81yNekg2ikAWL/YnLtOasWsq/vW7D0dHqSe2Km c3aLHgYPwH/J0XMmeoRqICgdn/rQr5iu26OKhZD1am8XiiyVSb5im7Px5BRlXD0wBJOR phB2GY/diRNV7AZn3dG+LY8xoPgJXFq7gy9fIUEMmeQ6CQJ3nbQ4yPaBMhVln+EEzK7V QP5GJaWR30Z2SgbnL257rSNHGRYpTQws8tpp2xxyhq2hDU2cnflv2oZ2U9JSovCm2aAK yjn7zyxhVNCgLV8OCLglH+AqSwXebCe2bMQcL/9HpSq78gpYgBA/oIJN7FrE0u0250f8 LsQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=CJi7Zl6vfBFp7vosq6ncw5ahjATKPSYSi4OHvyyAQs4=; fh=DQxqq/33IpOwSYnV9YTF+KXWJ33MCmmboJP2uMdxU7I=; b=Q4TN7HsBaqLfF5nxnC1e5WuGsNR6s2EBKVE03Rh1wVP0bDYwVNQiCvBCXfuJYhxrnq Q61gtPZ6/6NmaxbJZ2xCmCx5wc+WLZOwvhX3zQfxoRbgrxeNnFV64VTOSwk83daiWv9V qxtX2NZXm1DGRnOSuyPIc1y0vadyH3SfX5ytlJV+r6Xkam/bbvDGRYdNvuW0Ye482TQm go8rTwfiMKTPX87QyekHrtH9A6yIO5WX1JGYe61UnZPYEZe5skRivf+4yAGHqjOQ0Das yOnJYiLW4w11tptrFD/Pbsv3i0R80UUsu1vg/M3WD7MACedxNKNgJiyAtEO29yIwPfHu pPRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fbxRnf79; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-wireless+bounces-8205-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc65111si496210866b.621.2024.05.28.07.22.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 07:22:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8205-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fbxRnf79; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-wireless+bounces-8205-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CDFEC1F22DD2 for ; Tue, 28 May 2024 14:22:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4185117166E; Tue, 28 May 2024 14:20:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="fbxRnf79" X-Original-To: linux-wireless@vger.kernel.org Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A452017106D; Tue, 28 May 2024 14:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716906049; cv=none; b=pb2ClmZiDQ1qYnJkVknStVHoRtRhqAkjpyF4O3++Dm7dYLH20TOEwN7dEJ/YdTfmIoAS0QENJcACQ++F634mzzdIHU2wPw9PT4+7F7uDBI6LVGyLbNjmPgqvC9nf1lkhM0IkxWuYapwqEuFy0HvjLykbPMffyZoRuGTotg+F65w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716906049; c=relaxed/simple; bh=9LBFDaFfhOfUAOUwwN7VN1Kk9xj/7iR191B7RgVX7U0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d1NXydEwbb+LqWAciYqJW2D7+/IdNGs1rfNfd+NnEwQrWIuxnSf1vmDNbUDqpyUfVCvN9HLjzcyDjRXDIY9bPuwLpzwDboCwmcJeuQ38Tts2JNnu8VmmWBAdO+MGT9P6RcX7oRcYiDCxQWO2jhhjE3c+hVux8LKZ7HRG98YxmWk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=fbxRnf79; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 8F840240009; Tue, 28 May 2024 14:20:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716906045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CJi7Zl6vfBFp7vosq6ncw5ahjATKPSYSi4OHvyyAQs4=; b=fbxRnf79QpMKw6SvU4q6fL33PZoOJp03DCfFeeQsyhiqnPyua23CMUPTmj4jMDKIe+Fvrm Tju2BVObRrKy7RfMG4zFskMoRB9JgRDDZYfMctgkKzJzuypV8ttzlyJrJBTUVUUaJWkdBo ROUmj2HoOAWPoZ2NpC2viegQi57PAtzr4D+P11cFdSfGt16fc5p2BV0qsrr7JB32+DZJzH C8yuVzY8IZ2RikT3y6gSe42jlbeXYG/EDCz8BfutZ72A9fP1mUF4PtSm8eGVGy97sAUgGD kcbAkjlg+3CKHj0Qk+2otGMeCkkNRgep0BUFjef98Gs58fhmPYZCNNkLox7Ysg== From: =?utf-8?q?Alexis_Lothor=C3=A9?= Date: Tue, 28 May 2024 16:20:29 +0200 Subject: [PATCH wireless 2/3] Revert "wifi: wilc1000: set atomic flag on kmemdup in srcu critical section" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240528-wilc_revert_srcu_to_rcu-v1-2-bce096e0798c@bootlin.com> References: <20240528-wilc_revert_srcu_to_rcu-v1-0-bce096e0798c@bootlin.com> In-Reply-To: <20240528-wilc_revert_srcu_to_rcu-v1-0-bce096e0798c@bootlin.com> To: linux-wireless@vger.kernel.org Cc: Ajay Singh , Claudiu Beznea , Kalle Valo , Thomas Petazzoni , Dan Carpenter , linux-kernel@vger.kernel.org, =?utf-8?q?Alexis_Lothor=C3=A9?= X-Mailer: b4 0.13.0 X-GND-Sasl: alexis.lothore@bootlin.com This reverts commit 35aee01ff43d7eb6c2caa0b94e7cc6c45baeeab7 Commit 35aee01ff43d ("wifi: wilc1000: set atomic flag on kmemdup in srcu critical section") was preparatory to the SRCU to RCU conversion done by commit f236464f1db7 ("wifi: wilc1000: convert list management to RCU"). This conversion brought issues and so has been reverted, so the atomic flag is not needed anymore. Signed-off-by: Alexis Lothoré --- drivers/net/wireless/microchip/wilc1000/hif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/microchip/wilc1000/hif.c b/drivers/net/wireless/microchip/wilc1000/hif.c index 3925ca653e80..f1085ccb7eed 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.c +++ b/drivers/net/wireless/microchip/wilc1000/hif.c @@ -1594,7 +1594,7 @@ void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length) msg->body.net_info.rssi = buffer[8]; msg->body.net_info.mgmt = kmemdup(&buffer[9], msg->body.net_info.frame_len, - GFP_ATOMIC); + GFP_KERNEL); if (!msg->body.net_info.mgmt) { kfree(msg); goto out; -- 2.45.1