Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp416986imm; Thu, 28 Jun 2018 23:28:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIFIFQ0eTs0I3uBy0Sie/kqkzjkhp/pnTtKXGBgz5g4z9vj/gD7yumJsiQMbPSzJBi0WPdZ X-Received: by 2002:a17:902:700a:: with SMTP id y10-v6mr13848255plk.249.1530253733018; Thu, 28 Jun 2018 23:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530253732; cv=none; d=google.com; s=arc-20160816; b=QJwKI4F8BuWUxn25rJLnrNfUslSo6OLMt/UwnStCUOfYqLs9E1Iq4UvK8U5HJXQhVL 2vnsVwPLwL8gmsxzGPPu70ciQN3628wbrivO/5mqMBsnIUNMvqi8PkJVyvvfC61/ytRy FKAGi0ptjKJ1IebBVkkbs1CYPVwfZ0Sx+Lv7uxmUzPTsGpD6zsbHWRbBeNgPrNBrg5h+ SLKBdyAv9YCC8zLL3EJmBVFSePLeLPn8xHWhKwZ1ch6i8WmJHda8Z3x7nqzYureq64M0 KORja5rPSSTKiMgFOlUqwsurEdRylyCCTBRjuSzftIQBIWV6Ru3VC7CcGSztErZRCUoR +hCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=jJ0HvTuii/tj87M4Greg6e4RuT0tIJ3zCHzr8ED8vI8=; b=SsWvn7gAvNawRokuiMQ7rcVVNoiiDtn2b0YHhsPemF2KkDJYmfpVWre6AW82lB2+/W dHXrRrewFct8qUdKSSNn3ensOeVO2xBK40r2M8z918MkpdZh5kXCYkExQsCm+zj+2gjJ KKAs7/HX/oFJrIY6D4FbxOTqbBH/VhXeaEUYI38CH7yUP2EhnHygN+JMIG1UDhj4j3ZS htJUAVtGtHM2EYpSPkcm2Ma54ci+vvBo8U3b4PfJb1XShVKsT3bsMMstQ/0sNTob8fOL xPYUJs3ztd/hfl+M8/eoY5eCqDutM9bFZg9PBvDZKFbdJwUoHySuezvz2WFvi29npXne eIDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pMotlqLF; 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 c10-v6si8587361pla.98.2018.06.28.23.28.38; Thu, 28 Jun 2018 23:28:52 -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=pMotlqLF; 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 S935132AbeF1XzM (ORCPT + 99 others); Thu, 28 Jun 2018 19:55:12 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34107 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751539AbeF1XzK (ORCPT ); Thu, 28 Jun 2018 19:55:10 -0400 Received: by mail-wm0-f66.google.com with SMTP id l15-v6so586680wmc.1; Thu, 28 Jun 2018 16:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=jJ0HvTuii/tj87M4Greg6e4RuT0tIJ3zCHzr8ED8vI8=; b=pMotlqLFxc8OLEZltEF7pLDWf+QKva5zcsSr4SqlSSPOFU9LRL9EbTkVN+AO29diXz 6HAVL70jzF0CR7syE+OpUATWzzTxLf5AGuzrAoRWjZZpepRRw+Q29z5aMd2qhHjNbaoR fxGJBlku5WCMYHaak6E9Ek0R72WnpncFWdte04t4V2SfX1NTTBU995NLZCN/LLnB/WJ2 IGFa7Z/5aEBy7dsXLfCbk0a8/TPfDwNb7xVl6XI5x2lL3z+iXxkU/R5qS8CSGNii6a0B uUaXRIXjk1evyZs+p2oTwzxeGRTnyFiAYiD4NdsrlpWpjdWwODO/BNHeLoQB9EKaTt07 uEpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jJ0HvTuii/tj87M4Greg6e4RuT0tIJ3zCHzr8ED8vI8=; b=gAqxc4LfEUsujyEaOmNZpOfeBcwOWAGocaF4JlE6UU6bhuZB0CSJyOYTZ/q+M3VCbQ A/Jyf+4aAh0YpSmr7XhL1fw4FaUL2cA8QowaLMu6299gNORpdCHR3aLpxQmAX7R9s3uT IjOAzfEO76YAw5ebbKjM/1DykgUgEoSp5jGfenJwujslbMxsX1otnnroW/fuE0VsPRxM +3BCKHUpfFm6vCP0GOaFpFZmYqSWz3HxQ7siFsdOv8ztBo4aekRPofvLHjmz1lC2URHm c9V8VhntBR5qjO5ulukfh5XPhW13iMZ4yQVK5pBt1QX/l93yD3lUQtbTuuQac48Di0dC LzLA== X-Gm-Message-State: APt69E23nw+E6NbjMKGwXBdbWtilG6GdMY/l3HrvXLfkTHbXMb6X9UvD PXAHQuMiGlU/BkgbSKNKrEU= X-Received: by 2002:a1c:d483:: with SMTP id l125-v6mr33213wmg.98.1530230109163; Thu, 28 Jun 2018 16:55:09 -0700 (PDT) Received: from localhost.localdomain ([156.219.234.99]) by smtp.gmail.com with ESMTPSA id v10-v6sm1305820wrm.80.2018.06.28.16.55.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 16:55:08 -0700 (PDT) From: Karim Eshapa To: lars@metafoo.de Cc: Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Karim Eshapa Subject: [PATCH] staging:iio:adc:ad7280a: Use GFP_ATOMIC in interrupt handler Date: Fri, 29 Jun 2018 01:55:03 +0200 Message-Id: <20180628235503.4464-1-karim.eshapa@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use GFP_ATOMIC rather GFP_KERNEL in interrupt handler, as GFP_KERNEL may sleep according to slab allocator. Signed-off-by: Karim Eshapa --- drivers/staging/iio/adc/ad7280a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index b736275c10f5..25c4fbc303f7 100644 --- a/drivers/staging/iio/adc/ad7280a.c +++ b/drivers/staging/iio/adc/ad7280a.c @@ -692,7 +692,7 @@ static irqreturn_t ad7280_event_handler(int irq, void *private) unsigned int *channels; int i, ret; - channels = kcalloc(st->scan_cnt, sizeof(*channels), GFP_KERNEL); + channels = kcalloc(st->scan_cnt, sizeof(*channels), GFP_ATOMIC); if (!channels) return IRQ_HANDLED; -- 2.17.1