Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp417501imm; Thu, 28 Jun 2018 23:29:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIS7Jrnp6Sfy0djv1FlkMdX2E0ctAJC8KF0xTc1Jp+T9G0t5Ic7Ed+3qbGyz1qCtMlCDNMD X-Received: by 2002:a65:4442:: with SMTP id e2-v6mr11493963pgq.53.1530253774897; Thu, 28 Jun 2018 23:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530253774; cv=none; d=google.com; s=arc-20160816; b=ZTpAjoa9XvVA6YS9xCtpMAJ+FR8wdYEoCSwLPRalo7khznkQqnurwHzdYVMoMMCdnm NeNJPt1y57vPACnHfbW+dSFhxidRwExLGAGgKPmy8fqC7jqj1JNCeOT7zmBORNYsVy6t GJAJLx0oJTVxYA6tXGliPTHPeESYZ1a5JSUWI61fqWDYeOCj2nzHMtQv9HqzttZkRHpU 97Y9ao6Rktsf1C+F3Of1X7QlzRu21kFED337Cero9tq2v1aNHhHe0SZC0FEh0L6J6cmv yoMONC0eUCYbV76sD+HyplsqGcKnosIJ3bUtnmKkIwVucclbEZuSYAfcxfDeWD2hka/P jxAw== 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=Vr3XRBrdS1IX/dNtV2x+ouEI/F2h4gh1CnZ5j5Y88lC7SxZl5CS2Z3iUqNgy8I1TXy RtNHXPgnpNiy9+LMQXxC7W2/0urfV6oUaZzkqKlLRTub5e3alS+tDyB6BRsz2asHZPZx x8r12RUJwq42sEMksvp+7ChPugc8IN/tsm+2kAdSU5gIuImv2K3qWo+op+FKYiuyV/ZN lpiMU+LpNWWQwb1Mklk+RoH63DLXTmA+E8WsEQYWFtOfDobjP2iI02izrDIdFKxVrFLs MOh1VlPfp18UhmycylMvbuDIg5KO42yZK8wtUWOF8gOzzhJgC9YI7bKldT04/eA10eR2 Eang== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gxOAYW97; 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 t66-v6si6006128pfg.292.2018.06.28.23.29.20; Thu, 28 Jun 2018 23:29:34 -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=gxOAYW97; 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 S966949AbeF1Xtl (ORCPT + 99 others); Thu, 28 Jun 2018 19:49:41 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:33060 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935342AbeF1Xtk (ORCPT ); Thu, 28 Jun 2018 19:49:40 -0400 Received: by mail-wr0-f194.google.com with SMTP id k7-v6so3601366wrq.0; Thu, 28 Jun 2018 16:49:39 -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=gxOAYW97Y7ahv9sWDXQbUZw5eqMUHTHPA5OwJM9ZMtbYXBHKk0MOo+LIHr6NCovYQI EtAOp9LxdhE6/fNTPz6A0uWY3R1+6HGYESfZxRgq1krWtGwH7s8Z1avcBstKyrrHcUdK r8RwEcdFgJVo89iW9m8zeC/CBKtum/n4eAMXD4ir1PuNSX/foAKFpC0X9+Vfbnm/H5pt HZczpYxlTserATpAFMCIDMpHVd4Ciec9djo9ZQu/XWjXlA38mRgvwjtluCNMenRP8Jx6 BL+AtYlZrAEt2kj2KACj/dmEGxziYIaeM9ycU5XEu/noiFIoSKR6okg+u4544JSySDl9 m0fQ== 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=br7KBP/qQ2rqoiAtp5xzoz+hS28L4pISkm5PgHyFQBZvBWmnnE+O/42XiAEMCTtXOU 10MYHmwpMOx479yFjLU2g9nvKaJ/ykulXgGe3dXLcS8OrFkB8jMoOsxNbd9yX50/MaVK IunyiGm/IADdLtVKxG8kb3QeZqqEdv6X8g2lYc6GXJMZwaZIZwsagnBzTaTh2Axmtax6 HaTQA/lyzDaKBZ3dxs0i8+ILTHWYNaBKrhVe9hri9uly4xPznoPg+iTmlVREwjIYzoDE yfztH3mjvK2//on0NSus8nm35rkRkRSDb1BUtTNn+4VcDT9JRxaTkodB+NAyA2qEXSHF NRAQ== X-Gm-Message-State: APt69E3K4vF8iim8o4B2KYrn5xgsrHm4Whl46AMJez4KO/0gQmJYbut6 cfYfRONKJ+dRT7qJ2CjZyXo= X-Received: by 2002:a5d:4b0a:: with SMTP id v10-v6mr4396167wrq.87.1530229778661; Thu, 28 Jun 2018 16:49:38 -0700 (PDT) Received: from localhost.localdomain ([156.219.234.99]) by smtp.gmail.com with ESMTPSA id t124-v6sm78214wmt.29.2018.06.28.16.49.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 16:49:37 -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 4/4] staging:iio:adc:ad7280a: Use GFP_ATOMIC in interrupt handler Date: Fri, 29 Jun 2018 01:49:28 +0200 Message-Id: <20180628234928.4205-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