From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 535D0C282DA for ; Tue, 16 Apr 2019 11:47:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 21FFC20870 for ; Tue, 16 Apr 2019 11:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555415265; bh=Ghn1XFkdSnhOG+3YPh8lOQM0QZUsBp4XuinbLideFxY=; h=Subject:To:From:Date:List-ID:From; b=j8I+2BIr4hDQXuvWFAlLhxQMmfuNda2BtPtp+2AnQTxzWmH27n1t1O0Q3qKaXUS+G EKUMJvlnDWhBcO246t8EufXwz5TMQf+G8Z8JLUk8sbdqUkpDHZj8ibQCyXLRLBGNC1 JOcEP8kn+xIGQNP5buEkFR+XVH+EMPrAV8ROd0jU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729429AbfDPLrn (ORCPT ); Tue, 16 Apr 2019 07:47:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:56682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729412AbfDPLri (ORCPT ); Tue, 16 Apr 2019 07:47:38 -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 A7DC420870; Tue, 16 Apr 2019 11:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555415258; bh=Ghn1XFkdSnhOG+3YPh8lOQM0QZUsBp4XuinbLideFxY=; h=Subject:To:From:Date:From; b=yQVKDYx2ixlKLFt0p8TYnxM/PR0+Qf8heCycMLDkR4XuU6EC3vCZY1gyYsi7Y6Hwa u/cHj0F3oAILglXZ7Bp+O1AiFECrI86RmP/hSF3lKBglR5uje+/xJkErMu7CvKT1x0 2qmtrJRvN/0TUHVva1mPj8wyIz1QVLwXX/xCT5gA= Subject: patch "staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context." added to staging-testing To: penguin-kernel@I-love.SAKURA.ne.jp, adham.abozaeid@microchip.com, ajay.kathat@microchip.com, gregkh@linuxfoundation.org, stable@vger.kernel.org From: Date: Tue, 16 Apr 2019 13:16:09 +0200 Message-ID: <1555413369239254@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org This is a note to let you know that I've just added the patch titled staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context. to my staging git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git in the staging-testing branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will be merged to the staging-next branch sometime soon, after it passes testing, and the merge window is open. If you have any questions about this process, please let me know. >From ae26aa844679cdf660e12c7055f958cb90889eb6 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Sun, 7 Apr 2019 21:58:43 +0900 Subject: staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context. Since wilc_set_multicast_list() is called with dev->addr_list_lock spinlock held, we can't use GFP_KERNEL memory allocation. Signed-off-by: Tetsuo Handa Fixes: e624c58cf8eb ("staging: wilc1000: refactor code to avoid use of wilc_set_multicast_list global") Cc: Ajay Singh Reviewed-by: Adham Abozaeid Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wilc1000/wilc_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_netdev.c b/drivers/staging/wilc1000/wilc_netdev.c index 1787154ee088..ba78c08a17f1 100644 --- a/drivers/staging/wilc1000/wilc_netdev.c +++ b/drivers/staging/wilc1000/wilc_netdev.c @@ -708,7 +708,7 @@ static void wilc_set_multicast_list(struct net_device *dev) return; } - mc_list = kmalloc_array(dev->mc.count, ETH_ALEN, GFP_KERNEL); + mc_list = kmalloc_array(dev->mc.count, ETH_ALEN, GFP_ATOMIC); if (!mc_list) return; -- 2.21.0