Re: [PATCH 3/3] drm/amdgpu: wire up the can_remove() callback

Greg Kroah-Hartman
2024-02-02T23:40:04Z

On Fri, Feb 02, 2024 at 05:25:56PM -0500, Hamza Mahfooz wrote:
> Removing an amdgpu device that still has user space references allocated
> to it causes undefined behaviour.

Then fix that please. There should not be anything special about your
hardware that all of the tens of thousands of other devices can't handle
today.

What happens when I yank your device out of a system with a pci hotplug
bus? You can't prevent that either, so this should not be any different
at all.

sorry, but please, just fix your driver.

greg k-h