Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1902293pxu; Sun, 13 Dec 2020 07:05:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJw24Gw0qvMbgM/jLABhr9bqOjM7XiVHHjO+NklyzTMUcJ7N1+2r/QIckVlN9xKzMYAEPSqp X-Received: by 2002:a17:906:8151:: with SMTP id z17mr19229592ejw.48.1607871919561; Sun, 13 Dec 2020 07:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607871919; cv=none; d=google.com; s=arc-20160816; b=FWz8P5rBKDLBOgRE5BRqAcp9SMKMeuA9g8JgjIm9d6Mr2q0h2V+sCVxW00XSP5uHok olpVM8zn4uUVfUEu3xT8RFqDni7zyR9doyk6MWjfhkz7j2ceY4Mz/9YFqZmdXUg1YGJW wqktrh9dhuYujVmAqjOlMde8+Xx6eWUMvWgzqVFljzwZS779ptCiMNzEk+RXOLfKua47 yOB9xa3mHWbxWMs58B/cTsF9KiewqAXxWT1/MdEQuYtbIEDyIxbBfb1q4f8wa4THLgyM u2RzqSDfIPVq0M1l3kHWC96q1it/ibx0KHEpSCuwGaFMg1to3dx2u6mDpXWbw7HHYoNA Qn+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=GQFcph20WNJQTt8K6B0CPYy7WJXYNo5dAblDzaOfO5w=; b=ev6+Nuu3ado+NEa3vrOeZXWVavNHd813jhF3QGVyy9fZ+H8oI/rOEKN1yY4SEeYZxt ODHtfyJzaj7o9OLvaqvUocDCySOQkUJN+3uRjnAe6VTh44Vwrqp3ehb7rZ8+DdU8BMpi 0d9jFFGeQOkmRBkwkS2CYRzFWlR92BONa0WvN24UT8ud5HVyf0QpfeAVLHMIREGCXTXZ qeeXkie88V3v8UR9Bgp/EF/kH1thSYNY6+m7PuEKCR/keQ/+nA+MaKqR9weQcVYreUR5 WSMCPASslB99OwxMMY5qf0OmuhIUSNJCkpxTPIMmwu5Z5MhkQTKpHQvv3FSN88Zfwb3w /lOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ruMxCQ1k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm2si8808684edb.472.2020.12.13.07.04.55; Sun, 13 Dec 2020 07:05:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ruMxCQ1k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438504AbgLLLlx (ORCPT + 99 others); Sat, 12 Dec 2020 06:41:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:37020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438416AbgLLLlX (ORCPT ); Sat, 12 Dec 2020 06:41:23 -0500 Date: Sat, 12 Dec 2020 12:41:46 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607773236; bh=jqjRDO6it4PIfRZs/qkqjcU0uJ3CmwvFfKshqnxbEDU=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=ruMxCQ1kiuFBWVpjRNsxHUsJiHQFxppEuykEu2jJG1JMO9u+CUu9k8+095VnIGgm7 V4AkxF0t33HSAtHsO7AhaiLlNyRwzVMk5OiIJHEpHz+j8Etd4Jgw95ABY5DJkE0PBI LlKzBjJzjCeHrsK6ZJMbP0xc+Fuy8cOpiefMBX8M= From: Greg Kroah-Hartman To: "Rafael J. Wysocki" Cc: Saravana Kannan , Len Brown , Rob Herring , Qian Cai , Robin Murphy , Marc Zyngier , kernel-team@android.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ACPI: Use fwnode_init() to set up fwnode Message-ID: References: <20201211202629.2164655-1-saravanak@google.com> <3491615.yqrABBVLMz@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3491615.yqrABBVLMz@kreacher> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 11, 2020 at 09:53:09PM +0100, Rafael J. Wysocki wrote: > On Friday, December 11, 2020 9:26:29 PM CET Saravana Kannan wrote: > > Commit 01bb86b380a3 ("driver core: Add fwnode_init()") was supposed to > > fix up all instances of fwnode creation to use fwnode_init(). But looks > > like this instance was missed. This causes a NULL pointer dereference > > during device_add() [1]. So, fix it. > > > > [ 60.792324][ T1] Call trace: > > [ 60.795495][ T1] device_add+0xf60/0x16b0 > > __fw_devlink_link_to_consumers at drivers/base/core.c:1583 > > (inlined by) fw_devlink_link_device at drivers/base/core.c:1726 > > (inlined by) device_add at drivers/base/core.c:3088 > > [ 60.799813][ T1] platform_device_add+0x274/0x628 > > [ 60.804833][ T1] acpi_iort_init+0x9d8/0xc50 > > [ 60.809415][ T1] acpi_init+0x45c/0x4e8 > > [ 60.813556][ T1] do_one_initcall+0x170/0xb70 > > [ 60.818224][ T1] kernel_init_freeable+0x6a8/0x734 > > [ 60.823332][ T1] kernel_init+0x18/0x12c > > [ 60.827566][ T1] ret_from_fork+0x10/0x1c > > [ 60.838756][ T1] ---[ end trace fa5c8ce17a226d83 ]--- > > > > [1] - https://lore.kernel.org/linux-arm-kernel/02e7047071f0b54b046ac472adeeb3fafabc643c.camel@redhat.com/ > > Fixes: 01bb86b380a3 ("driver core: Add fwnode_init()") > > Reported-by: Qian Cai > > Suggested-by: Robin Murphy > > Tested-by: Marc Zyngier > > Signed-off-by: Saravana Kannan > > Acked-by: Rafael J. Wysocki Now queued up, thanks. greg k-h