Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2154217pxb; Sun, 18 Apr 2021 21:08:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypPjTyAlB4e8HRM1ZWC4qLXap4uW53EG+XCFoeuQMLI1lCpdd6xxEnTrraYh98P6DDqlHx X-Received: by 2002:aa7:938b:0:b029:261:44a6:8b44 with SMTP id t11-20020aa7938b0000b029026144a68b44mr1093037pfe.51.1618805313902; Sun, 18 Apr 2021 21:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618805313; cv=none; d=google.com; s=arc-20160816; b=ip3pU0GrYZyCTUYshOM0PXK2+vYsLwsY9e07y+riBYjw8yiJyZtkG5So6qfp37adLa +jhs3pyoSXeNkt2uyXKe8xuamCyGbcpPTb3Sje8kQDwnKyYfr48CHH9lROOkjEshCr7g hHZYBHI9H8VfhlFXyOguQoJkxvrdzn9zmnJl1GdaUZ9iq45l/tV8+ZwJSdJOJssHsNJX Mpqfrfolg2P7h+xYozUVqzhsVLb4dBOwfAHOfV1gF4SN+7ulBsAqJbeTdY/p5Y5nF/2p 7Xxy1qeeaPXgDx+sAh14IzCXG1xQkNURtjdgRyZh1I43n98T1LMez/I0EcsJ0g/TxhJN uCgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=VJCQVnp147k40pcIk8kcTJ6eEBqQq2F+guzsHZkEsRI=; b=ixPrOuDidHtU+LC7nWBiFvnytyLxZyGY4XV0Ra/gdPhLKsUdL3FlOpLyoCGDUFH32E Fct3QVxvauZLJB1l9lwzb0ps0Qk2WMm/h9ermp8dZhL4n+vL1l8YYeITczHmXEMS2tq3 yO/9yq9KnzWyrkGBY8aQCWZ/esbktFkz7v9Kdie6TQbI6AmhcZJzgtak8Na5I2tsEMPa TogtqZ2AmlbRHU8e/kYFHzdPhyhIUILoo5iuR8IlYwnuwc9VjzIpy/UfFRL01i5oBmPy r5snxpz/MuYJRfe5GSdn/K/javL6Mcu0MkWMROE/ruLqSaN73YYdF4yZVZ1b1DtVpoHm mWiw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q4si13037684pgp.382.2021.04.18.21.08.22; Sun, 18 Apr 2021 21:08:33 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233500AbhDSEHT (ORCPT + 99 others); Mon, 19 Apr 2021 00:07:19 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:52059 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237454AbhDSEFV (ORCPT ); Mon, 19 Apr 2021 00:05:21 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 4FNtVt45cXz9vHc; Mon, 19 Apr 2021 14:04:37 +1000 (AEST) From: Michael Ellerman To: mpe@ellerman.id.au, Tyrel Datwyler Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <20210211182435.47968-1-tyreld@linux.ibm.com> References: <20210211182435.47968-1-tyreld@linux.ibm.com> Subject: Re: [PATCH] powerpc/pseries: extract host bridge from pci_bus prior to bus removal Message-Id: <161880480588.1398509.15016110780432522314.b4-ty@ellerman.id.au> Date: Mon, 19 Apr 2021 14:00:05 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Feb 2021 12:24:35 -0600, Tyrel Datwyler wrote: > The pci_bus->bridge reference may no longer be valid after > pci_bus_remove() resulting in passing a bad value to device_unregister() > for the associated bridge device. > > Store the host_bridge reference in a separate variable prior to > pci_bus_remove(). Applied to powerpc/next. [1/1] powerpc/pseries: extract host bridge from pci_bus prior to bus removal https://git.kernel.org/powerpc/c/38d0b1c9cec71e6d0f3bddef0bbce41d05a3e796 cheers