Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp804297imm; Fri, 5 Oct 2018 12:04:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV62OAXkP/xzqAza9jAg5qkaZg8pGmOuo3607Vsws1r9kWLDGK6OVh/Y3jI8nBg8R4M/o0YSA X-Received: by 2002:a63:4952:: with SMTP id y18-v6mr11383718pgk.32.1538766291914; Fri, 05 Oct 2018 12:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538766291; cv=none; d=google.com; s=arc-20160816; b=Tgci49Rnv2pR8dnF3DnmrW5EE3NehgxARQMt3u1/Ff3mPgvuMKwehDMMIHZ3GwfaSx TOSVOuvEQpCLsu/5WHDOAAXzb9A3+0aogj20YHblBkg4Wc8GtzOIM5ydLDjgx04J6M/v cZQZh2MTlkIqlaAMOK9Nx4s+KAkV68tKdYc5+sVse8wqZTFGUESpCt8NsZalOoH5eL9d PxValZ0/yQ9zctkme6qc4x81W1HdI+c5MGfhnP9JcEDiU5lnOhh9bbMsja7F+F5UDaM6 +ZnyXn5oUl1+npALCrzI2WT26kIYynY2XbLxK1DZCbThSBPn84OeOCu3qlh90wfbRUoo ID4A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=IxNzpZfrzf04aYB260LV+RsW+idnvKy2G4n6HkUa5Hw=; b=mvL0r+w2zLm5uPr/ThupHJLUq/L5jj+50p4HfHCpO/frUxuK5J/LuU0yk2aG7sLmNC 6iypOErgf9I7K/5c0lCuMmmjEhmxRC8TfUO4XGm/K1IRLEK7CM0WvFL2jRVhtbtd53H6 OZpSLmq+FZfcZp5tWB4ZxBIIhpSCJKknD2AZd9xqvmtC96Uby0ZKoph6eUvuMh7DuYpP pdIv+ZYI/Ap3L/KZXvcpp+pjOrr/U736TP5lzvl9EbHAsMMloF62m5Y50b+JaksynC2w Sui9USXGE8G0ikzdNbcX52tme7yObl96VMkrEgP1rxkqKQP9Shsq4QYtZdzvCJ5dsRYG lIig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DVkQSWrA; 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 o11-v6si9430423pls.76.2018.10.05.12.04.36; Fri, 05 Oct 2018 12:04:51 -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=DVkQSWrA; 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 S1729223AbeJFCEc (ORCPT + 99 others); Fri, 5 Oct 2018 22:04:32 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36117 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728661AbeJFCEc (ORCPT ); Fri, 5 Oct 2018 22:04:32 -0400 Received: by mail-pg1-f194.google.com with SMTP id f18-v6so5134305pgv.3; Fri, 05 Oct 2018 12:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IxNzpZfrzf04aYB260LV+RsW+idnvKy2G4n6HkUa5Hw=; b=DVkQSWrANzQVEbIxB0Nlcx7OLj3wGT7nho/daPWb/qgY8XmmDOCiZ2HhYLGObgLlXb nYHR4tdV3WiXB4V3mlPY+Sx5DXoFCwYTGMkSZfqql0ut03o9CXI2yvzgi4gb5jFv5wal ycFjyEpjMO0Fl1c+ajYfx4s+FldyTa2HmrBGi7utt66hccZ5oP9rVjRA1ZL9bmxc8uym qKGpKZVKaerFJCP2N6De3p4PGkGigAFP+0hkiW+ogoieb8/i6p+xY4ZiHX3faHdPoyYM FBYdXEx487K2J6VD9APzzm0tjdswYvpMi/kNJKrx5KB+LPtt+5wm+bctuWrlZ4NWj1OX ec0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IxNzpZfrzf04aYB260LV+RsW+idnvKy2G4n6HkUa5Hw=; b=KLVXQu00Rx8TULz3ugwYWPOmMh6awx6pIpeT6LD2hnrIx9vmBzAS4nQAGgd3Z2XK6T BZH1Z/NJQD3Cv2fGhn7DFajx7eWE854gC/ch2ja7ekcg2mNN6jp3GBSkYhpu0+jWUFb5 Pys8xExm5D54kppwsiTzq2eOVIuVVQJUSG+EYScAzzGGF1NsHfcjoEqpHzZcnFvzg3GG a/Inz1W/UCRTp4UknJRBgyJAvGZf8cx/9iWjuvMKeBfCVkyuezY+33nhkV/lLC4rCHRL 80zJz6rYdt1Op+bbdu42dj1uFe5rQyqH08jb/7B19egEVtWEEf1gImcV9NTLixrHumkd +5Kg== X-Gm-Message-State: ABuFfojDX0yi2qQ2w5frTeidQfEKnVySRnsOJmk9mksuAMbI1oaQ+vjz Ohh9UXERm6jLb6Y2vgrMpyk= X-Received: by 2002:a62:d841:: with SMTP id e62-v6mr13285662pfg.60.1538766268846; Fri, 05 Oct 2018 12:04:28 -0700 (PDT) Received: from [192.168.1.70] (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id y128-v6sm11691843pfb.56.2018.10.05.12.04.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 12:04:28 -0700 (PDT) Subject: Re: [PATCH 15/16] of: unittest: initialize args before calling of_irq_parse_one() To: Rob Herring 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, Frank Rowand References: <1538712767-30394-1-git-send-email-frowand.list@gmail.com> <1538712767-30394-16-git-send-email-frowand.list@gmail.com> From: Frank Rowand Message-ID: Date: Fri, 5 Oct 2018 12:04:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/05/18 07:53, Rob Herring wrote: > 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? I do not know if it could be independently applied before the rest of the series (I have not tested that). I included it in the series because the series has so many other changes to unittest.c. If you want me to break this out, I will remove it from this series and resend it after the rest of the series has been pulled to mainline (and rebase on the new mainline). This patch is not fixing a known failure case - the current test data does not trigger the problem. The recent patch from Guenter that you already accepted fixes the known failure case, so this patch is not urgent. The same is true about the other cases Guenter pointed out that this patch should fix. -Frank