Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp541576imm; Fri, 5 Oct 2018 07:55:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV63+B2h+TwlWisOLmdzr93Un7V3LiIXMQQhhhXK0ptZdvD0Ns0g0e6OCZkr69rsBfcGkreqR X-Received: by 2002:a62:1c06:: with SMTP id c6-v6mr12472325pfc.41.1538751301247; Fri, 05 Oct 2018 07:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538751301; cv=none; d=google.com; s=arc-20160816; b=KLpA6jIud4GEGpUQs3y18wCuffrq0psZvi8WZ5RGOE2WHLHZ48zyEeGZJDhKEQV0gB 6q5RDxGjmWI/UajC9np7wgYmGpqEnlS+t5sF54UPl/Z5kv4K8263+AUiz3kBJikrDPjN qYyK4usHQqgbB8g8lsTOqlRIST72ZT3/eKuEP2iRtao4/s8L4y2Dstv3JHmWtTQh0yWr HmZk3qIlzRUxY/u8NjaVKnmso90wkQFTJMTX3MK/cKXCgbzfpBXu45CestLMmtWlkFsL c20S+89p5hSAJ/1LptrgKQSHWELR8tgO3bQNHmfNtmcgWHullwjwuayUs2uMIM2j5Vn1 7MmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=leUtcggCaXXBipQNblUrLve9mwAZpDqlpt0XqvYTejs=; b=DAJ61LIcKOG6K4H853p2NJf6xWBTOhYKLRKv7+HTYSJXcVqMC9DutANN5zMtE3M3Wu Xsd+9Fvi+m426Kamcmm0VWP5l0DfoWnAH3PMm2p3wvB5FiDZuNnuHQr7cWwwBZZiVy7K 4zwHG3DZuOa3BDp7F9XWgmebGg0n4qJNthR+QBBLRB5eAi3yikMyRj3tSa1PnN0etNS6 Ju0wryUxB+kN915gP/dAe4xMxxQ8hwVtHSPEgBWJTW6pujB4ikI/TiNO5pH1LJjPbLiZ WIQJ7ke+yhxXGUjxa/ErEsY4rc+wH2SXat/2PpiKoC68eNub7cJ9jK/+848J6N7aXhLB 4DEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tl+jE4rM; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z22-v6si8459815pgl.261.2018.10.05.07.54.45; Fri, 05 Oct 2018 07:55:01 -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=@kernel.org header.s=default header.b=Tl+jE4rM; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728917AbeJEVwZ (ORCPT + 99 others); Fri, 5 Oct 2018 17:52:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:60908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728139AbeJEVwY (ORCPT ); Fri, 5 Oct 2018 17:52:24 -0400 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3B34021479; Fri, 5 Oct 2018 14:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538751201; bh=00zcc7T9LOqqvcw8lccqOwJaFe1MY6VWDH4ECJFlkn0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Tl+jE4rMsSuXm7vxnCkApF5zbU5S1iCkUWnHjuOXM7ME4r5SF+OThrHYbQoomG/3+ jNL3AGZ9XjeG95ghbh6wob3L/FurmTViXDIP8suDsFLOXIEGASFxk4u77iRB0ENTK6 Xtgvi/FBv3Gaq9ZBEtx8xBIcP/izrBjKwdvGwYF4= Received: by mail-qt1-f171.google.com with SMTP id b4-v6so5992327qtc.7; Fri, 05 Oct 2018 07:53:21 -0700 (PDT) X-Gm-Message-State: ABuFfoiQPUl/WsSQ/0nQNTI2KgSSra6t9J4ZQSMnlui83WehGIYEyVLd NHvGusPZZUM+UrxKF/1fARQcLvmeiCyudZEvrw== X-Received: by 2002:ac8:2ac9:: with SMTP id c9-v6mr9642544qta.188.1538751200204; Fri, 05 Oct 2018 07:53:20 -0700 (PDT) MIME-Version: 1.0 References: <1538712767-30394-1-git-send-email-frowand.list@gmail.com> <1538712767-30394-16-git-send-email-frowand.list@gmail.com> In-Reply-To: <1538712767-30394-16-git-send-email-frowand.list@gmail.com> From: Rob Herring Date: Fri, 5 Oct 2018 09:53:08 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 15/16] of: unittest: initialize args before calling of_irq_parse_one() To: Frank Rowand Cc: Pantelis Antoniou , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Alan Tull , Moritz Fischer , Guenter Roeck , "linux-kernel@vger.kernel.org" , linuxppc-dev , devicetree@vger.kernel.org, linux-fpga@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 4, 2018 at 11:14 PM wrote: > > From: Frank Rowand > > Callers of of_irq_parse_one() blindly use the pointer args.np > without checking whether of_irq_parse_one() had an error and > thus did not set the value of args.np. Initialize args to > zero so that using the format "%pOF" to show the value of > args.np will show "(null)" when of_irq_parse_one() has an > error and does not set args.np instead of trying to > dereference a random value. > > Reported-by: Guenter Roeck > Signed-off-by: Frank Rowand > --- > drivers/of/unittest.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Does this need to be part of this series? Rob