On Thu, Jan 15, 2026 at 08:57:14AM +0100, Thomas Zimmermann wrote:
> Use the PCI device as parent of the system-framebuffer device instead
> of the coreboot device. Prevents SIGBUS or SIGSEG after hot-unplug of
> the PCI device while the framebuffer is active.
>
> The simple-framebuffer device depends on the PCI hardware, so this
> device needs to be its parent. The current coreboot parent is no
> longer needed after the system-framebuffer evice has been created.
^ d?
>
> On systems without PCI or if no PCI parent device could be found,
> the platform device hangs on the platform bus directly.
>
> The fix here is similar to code in sysfb, which contained that same
> bug.
>
> Signed-off-by: Thomas Zimmermann <[email protected]>
With some minor comments,
Acked-by: Tzung-Bi Shih <[email protected]>
> + if (parent)
> + put_device(parent);
> +
> + return 0;
Or maybe just:
ret = 0;