Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp346174ybi; Sat, 29 Jun 2019 12:11:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCjHaqUAx76jRvRY8KWX71XusHdAK7+0VuUx+IaCZzvo4GXF3yNOANmJBuRU+pYx6dbKvT X-Received: by 2002:a17:90a:23ce:: with SMTP id g72mr20995463pje.77.1561835462979; Sat, 29 Jun 2019 12:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561835462; cv=none; d=google.com; s=arc-20160816; b=gfj3lEDglxaaHyrQIYnDvE4WEJp6u075LOg3bZVmT7jYh8au2kDVtJSiXnXtJZXoPF 7FD/ZkUtVKC6BkGpdNfHCKXz6G1/uUIk7IYH+QvKx3u5dJV4LvN30BDfGyLZfiGOSmsw knvTgDjgfpQ94eoMGxkhZPJ2UbD29mPgygbTzHWH0I9h1PXo2B18AcH2KMIVGhxevF1Z 0D4cET2shYRU24RJZ2rbatR8/5HIM6jbm2JbMimvP5ExbXwcLoW4olQnz9lP3826Ag3/ Q3aphZOqxqky9qj8Eqmu6w/93WZrOZ0VpZ7yBFYCfofWhGHw0iP/CF2jisKSinnN9hiB ZVCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=4Z+5F7GZWV6rxZhVeShHNbtKUyddpMRHWbu6DiZ08GA=; b=o0SizBZbmA4F9sFWjZy8lKXWvTPKWoESfPk8xaFjBy5UGnUOD4Ynhjxn9kVEE7nC6G 9GuHwUljDgiSl6daGpa5d8bBKa7TcNCv2RpX/1TF9xfqivMyuPCEsVuSsSBWNGlbnnWZ JU/EWRWoCq+wWyg1yb8AaVnqcP+uG6shkfmu1eI40SXQMG0ok10cre5m6fYYspace+YP 9vPM9/sTfBGUwDvPqSnfnJo5zCaA2tIFiVwKUq/KPXi4MkGqo5qeBwT8KfEz60hVCc/1 IxFlec9gKr2VA02ulCWHTS3NpBn0gO2HXOczY1OZga0m65N6OtFb824zvB2A5jcBCvT7 xtbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t248GpiW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si6069260plx.200.2019.06.29.12.10.46; Sat, 29 Jun 2019 12:11: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=@gmail.com header.s=20161025 header.b=t248GpiW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726907AbfF2TKn (ORCPT + 99 others); Sat, 29 Jun 2019 15:10:43 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38895 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726882AbfF2TKm (ORCPT ); Sat, 29 Jun 2019 15:10:42 -0400 Received: by mail-pf1-f193.google.com with SMTP id y15so4576692pfn.5 for ; Sat, 29 Jun 2019 12:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=4Z+5F7GZWV6rxZhVeShHNbtKUyddpMRHWbu6DiZ08GA=; b=t248GpiWEmIRFs5MIDUs+28DYxiAWNjP36UII3qCngr8Lf/syn0fZAZ0UH8nbam4rd TjCM32w8LJE7r79g+I52LK04219ZMIgNP3w65LpHElwSzufsI/e8V4Z7/Bu/BB893+1R VWPqOn2Nl9CrcKcemUNvzZteLZwmrdkgwaDkh5nzp3UCHnnrH0+q5H9EscAaBqFEZcOU /U60CVJv558id4b75Ve1a6kbWvOlxfguuCdmye61wy95gFfOsN5fiNN+xJnH83tCwEN2 axCrWWvXsqULG9BPJrP5d4Cx571lX6hEduLtpPGvc+JtCjr2rJu8s+zRZPt9eQ/wQE1g srKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=4Z+5F7GZWV6rxZhVeShHNbtKUyddpMRHWbu6DiZ08GA=; b=ISojh90Xp7S2AEHKNLRE+HqQaSSvuDyP+rVlcsOGJMea1Z7LB5eIeKPUDy7dGHwYh5 aEfsioT8PMDww9xancJTomngeJ44nAwPcAYBPf6sW37zJvcdCkFid8xmtFQZSYuo9W98 2nCHhlUQjQSKst4e8vxxgw5hmFbvLPIzB/zq8ZPJnOPBnNu7FH5TcMMUsEZnQDC73G7j wYL/L/VN2ayAJ08itPiFS679VpiJ/f4zlztJv+M3h/GITd2fFCXKWZP3anIPPMk8EeZO Mu98GlJQ3Kd6+FyOtlCh1e6bvYPJsVFgOJLbibYkqDNCO0L2VRcJaQnFU7jtjNZLj+8t oZrw== X-Gm-Message-State: APjAAAVnsDGz5uniaXK3SqHylBbB7pJukzkiMrkWvR1H2cg1mnj+jbxi MGzPYj4mFmw5Ae8QOGEj984= X-Received: by 2002:a17:90a:1ae2:: with SMTP id p89mr19823864pjp.26.1561835441671; Sat, 29 Jun 2019 12:10:41 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id s5sm5706805pgj.60.2019.06.29.12.10.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2019 12:10:40 -0700 (PDT) Date: Sun, 30 Jun 2019 00:40:35 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Bhagyashri Dighole , Wentao Cai , Hariprasad Kelam , Ivan Safonov , Alexander Duyck , Himadri Pandya , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: netlogic: Change GFP_ATOMIC to GFP_KERNEL Message-ID: <20190629191035.GA15292@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Below is data path of xlr_config_spill xlr_net_probe -->xlr_config_fifo_spill_area --->xlr_config_spill We can use GFP_KERNEL as this function is getting called from xlr_net_probe and there are no locks. Signed-off-by: Hariprasad Kelam --- drivers/staging/netlogic/xlr_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c index 07a06c5..05079f7 100644 --- a/drivers/staging/netlogic/xlr_net.c +++ b/drivers/staging/netlogic/xlr_net.c @@ -385,7 +385,7 @@ static void *xlr_config_spill(struct xlr_net_priv *priv, int reg_start_0, base = priv->base_addr; spill_size = size; - spill = kmalloc(spill_size + SMP_CACHE_BYTES, GFP_ATOMIC); + spill = kmalloc(spill_size + SMP_CACHE_BYTES, GFP_KERNEL); if (!spill) return ZERO_SIZE_PTR; -- 2.7.4