From patchwork Sat Jan 5 17:09:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 13820 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 65B5823E2E for ; Sat, 5 Jan 2013 17:10:10 +0000 (UTC) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by fiordland.canonical.com (Postfix) with ESMTP id BBC4FA19876 for ; Sat, 5 Jan 2013 17:10:09 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so17679588vba.13 for ; Sat, 05 Jan 2013 09:10:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-content-scanned:x-cbid:x-gm-message-state; bh=rHgbO9B0Yo/yDplnRzvL3/ReOlubB2ByGsc8qhELbAM=; b=SyiZgIq7DSJACgqFWlx6z7XRYMxanc5+hkbuJvZWZNWUAcFkwWiWQjQu3L66J253C5 s4qChAPnBUhE/fhdhR/Zs0xoJFF5EXVwZnl5e6DTnys1VDHCGza0nIE/PtcpP8LwEaLr rRw03rs3gCZMP0UU9k9V0OQEhvqdu13kehq8zJapc8GsSgJd07JjJZvt1IlhO0iLlTiV PAeWMaqscLTO0RdSHWXZQ3EMpT2BVe2vP3hz+JIFbhf5QP8FNLp5HrT71LSc5oz209nP 7pT7+dy5/c/mvckkm//kPjJZBEDDhJczJCM8OR6GiKydUnXsMhy5zlEa/95m0PZWxT1I BEsA== X-Received: by 10.52.88.168 with SMTP id bh8mr67772319vdb.51.1357405809256; Sat, 05 Jan 2013 09:10:09 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp16340veb; Sat, 5 Jan 2013 09:10:08 -0800 (PST) X-Received: by 10.50.157.130 with SMTP id wm2mr2458253igb.0.1357405806240; Sat, 05 Jan 2013 09:10:06 -0800 (PST) Received: from e34.co.us.ibm.com (e34.co.us.ibm.com. [32.97.110.152]) by mx.google.com with ESMTPS id u4si2610703igi.40.2013.01.05.09.10.05 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Jan 2013 09:10:06 -0800 (PST) Received-SPF: pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.152 as permitted sender) client-ip=32.97.110.152; Authentication-Results: mx.google.com; spf=pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.152 as permitted sender) smtp.mail=paulmck@linux.vnet.ibm.com Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 5 Jan 2013 10:10:05 -0700 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) by e34.co.us.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sat, 5 Jan 2013 10:10:03 -0700 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 974D41FF001C for ; Sat, 5 Jan 2013 10:09:52 -0700 (MST) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r05HA2xc384122 for ; Sat, 5 Jan 2013 10:10:02 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r05H9vxR017794 for ; Sat, 5 Jan 2013 10:10:02 -0700 Received: from paulmck-ThinkPad-W500 ([9.80.23.97]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r05H9jKJ017220; Sat, 5 Jan 2013 10:09:51 -0700 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id A3A54E4D8E; Sat, 5 Jan 2013 09:09:40 -0800 (PST) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@elte.hu, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@polymtl.ca, josh@joshtriplett.org, niv@us.ibm.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, Valdis.Kletnieks@vt.edu, dhowells@redhat.com, edumazet@google.com, darren@dvhart.com, fweisbec@gmail.com, sbw@mit.edu, patches@linaro.org, Sasha Levin , "Paul E. McKenney" Subject: [PATCH tip/core/rcu 5/6] rcutorture: don't compare ptr with 0 Date: Sat, 5 Jan 2013 09:09:37 -0800 Message-Id: <1357405778-13903-5-git-send-email-paulmck@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1357405778-13903-1-git-send-email-paulmck@linux.vnet.ibm.com> References: <20130105170920.GA13766@linux.vnet.ibm.com> <1357405778-13903-1-git-send-email-paulmck@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13010517-2876-0000-0000-000003CFAA6A X-Gm-Message-State: ALoCoQkpsMpeMXvLuj/dilnX+WOs+GlHlgW/lcQZamTYwATWjx8dlcmNG+g4K3d4A1SdLIv6jlep From: Sasha Levin Signed-off-by: Sasha Levin Reviewed-by: Josh Triplett Signed-off-by: Paul E. McKenney --- kernel/rcutorture.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 31dea01..0249800 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c @@ -1749,7 +1749,7 @@ static int rcu_torture_barrier_init(void) barrier_cbs_wq = kzalloc(n_barrier_cbs * sizeof(barrier_cbs_wq[0]), GFP_KERNEL); - if (barrier_cbs_tasks == NULL || barrier_cbs_wq == 0) + if (barrier_cbs_tasks == NULL || !barrier_cbs_wq) return -ENOMEM; for (i = 0; i < n_barrier_cbs; i++) { init_waitqueue_head(&barrier_cbs_wq[i]);