Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp4841682ybn; Sat, 28 Sep 2019 08:20:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQX4CNvBmNcq44DbXoHgn1awXjlpK6Hd2RhIuLlqy5eORUOKQWJXnygFIcAbvQVsIGFlZw X-Received: by 2002:a17:906:3db2:: with SMTP id y18mr12531174ejh.68.1569684055710; Sat, 28 Sep 2019 08:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569684055; cv=none; d=google.com; s=arc-20160816; b=m9aHaGb5xvcVKJAqQVN223WokCOQh7O9emH5RKpJXBm9cK0XHTqnQvdm3K/SoCSSyW ELe6SbURa+6Yc1oYDho0T5qKssvDDQiinsxStBYBwl7epFNoIxk6pp9mjzHq7WOcqGDt xj6qx+tG0y9DvBSG13LslIcntKyNwdnOPZJFGmAqSCEp3O/wNXRttNDR8aOTEk4TWHo7 JXPd0oiaqwpKfT/66bLIHvgx2O1hJiPH2SaSiKB2V8eAwj+VjXAu490wwV/G3U1z0c+i iOmc71awNb0Gtc/ThGMJ7Fsn91Q6Vlj/WXdb4J4jankZrWldZJoMyFr5H8KnySod2AH5 Tw/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9/Or9xbf99ONTFrxrvdxy7eGI39fKNbNjEFAv8oGWRc=; b=EZYmp5iNubIqzqk8PoXjusb0u2AF4vik2NphYzcUDaXqfboJuASCxVWy354f28uhDG 31cSmIunQCyl8ARgcFzkSOikE+iGnP/w4MfIzQWctgwsMBP8KWaxaM6VOqn2CltSyOeC gbfvRi76KUuBM5XNXil2Bp7+cq+Ov2KoZ5DrGmdN4kgD92FydG2O/k5GB4LtMj8C5BGu eT2Vsi+07cqgnFo7qgJCeXsABWVz2KYRfCnipBibhusdRyXuXT4oDBiJcPpcDFfJwT2l QipKnxSjursrTbb2AY/WbV3GSglselVI33ltB36XQ8WLOpG4gBp9OVOTjJxfhajRFEqw kDVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ft3YuyPn; 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 i11si4292763eja.317.2019.09.28.08.20.30; Sat, 28 Sep 2019 08:20:55 -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=ft3YuyPn; 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 S1728544AbfI1PRT (ORCPT + 99 others); Sat, 28 Sep 2019 11:17:19 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:45374 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726155AbfI1PRT (ORCPT ); Sat, 28 Sep 2019 11:17:19 -0400 Received: by mail-lj1-f194.google.com with SMTP id q64so5227589ljb.12; Sat, 28 Sep 2019 08:17:17 -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:mime-version :content-transfer-encoding; bh=9/Or9xbf99ONTFrxrvdxy7eGI39fKNbNjEFAv8oGWRc=; b=ft3YuyPn6wSzd1Hjia4ybybfrm9e4wypn42kke4SRlMXgCHkdWmpJmUvENrGSyC3Do RCoa6grXdDN90Pyjec3hs2V3gZqw3MmITK96L/RqkbI9E0fk5Mz1MiGlkgguGahqFeCE qvHHfOeRmx45fzqJ3ejbGROICTzO6HpdKdudgdUTPWQHXvXD8Vf1jQjPa5KssLA7B9bo m6ozZ5AbHDACk16705uiLWb0ex1gKl2NxGFiQ7mQ0/cO+goUInza4PAckA1/LGiXMHGG 64oEGE9iLVbzAvg9nqgr1/8abhD25ZQzMbnGFNn73bGwTYztDW72Q0tXN+VZmH17KJOK ipFQ== 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:mime-version :content-transfer-encoding; bh=9/Or9xbf99ONTFrxrvdxy7eGI39fKNbNjEFAv8oGWRc=; b=k+H226XvRYSgVbOXthSdL5ikTOaU8Hf0t4O2ZuAsO3phdqsQQHb4oJSWYx9kR/ibPL 5xLqcNfYquskJsgFRqXLbIoIZ1hTh/7ARJzf9nOrfICt3ZQK6pqKlQBH3QVbey9ATeLV ZqdaAnHNzKKNwahv3cJQf+1Yh+KmyCVd9ECp7Pmmc/YHdB9nOfoTt3+YORJg0uuYNdWi yFiY4ooos5+C7qfoyRB1X/0ksBEPrwrInE76JQNSpE3L6NB7MMmp5hJyMclBceyixVE6 wk7svaVBuX7FU7PrI7B4wVdTyQtq2c44XujDqZZ6k7z80gWFhAQqiym0NyoXUbKAn3x4 oh/g== X-Gm-Message-State: APjAAAWAHUtE09pYveHlbkfBRnclboEI5lYlm7Fwj3Shb1Z8UxaczA+K JwQcBQxbpfYSSdPW2HG5InL/M0mv X-Received: by 2002:a2e:7c17:: with SMTP id x23mr6370485ljc.210.1569683836509; Sat, 28 Sep 2019 08:17:16 -0700 (PDT) Received: from alpha (92-100-210-152.dynamic.avangarddsl.ru. [92.100.210.152]) by smtp.gmail.com with ESMTPSA id q14sm1352314ljc.7.2019.09.28.08.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2019 08:17:15 -0700 (PDT) Received: (nullmailer pid 1719 invoked by uid 1000); Sat, 28 Sep 2019 15:19:44 -0000 From: Ivan Safonov To: linux-kernel@vger.kernel.org Cc: Sebastian Andrzej Siewior , Steven Rostedt , Thomas Gleixner , linux-rt-users@vger.kernel.org, Ivan Safonov Subject: [PATCH] genirq: replace notify with old_notify in irq_set_affinity_notifier() Date: Sat, 28 Sep 2019 18:19:20 +0300 Message-Id: <20190928151921.29268-1-insafonov@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is for Linux 4.19 with a RT patch. The second 'if' block does not check notify for NULL, this leads to a system crash. Most likely, there is a typo here. With old_notify system works as expected. Signed-off-by: Ivan Safonov --- kernel/irq/manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 290cd520dba1..79a7072dfb3c 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -412,7 +412,7 @@ irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify) if (old_notify) { #ifdef CONFIG_PREEMPT_RT_BASE - kthread_cancel_work_sync(¬ify->work); + kthread_cancel_work_sync(&old_notify->work); #else cancel_work_sync(&old_notify->work); #endif -- 2.21.0