On Sun, Mar 12, 2023 at 12:10:38PM +0100, Greg KH wrote:
Also, this still panics a box with panic-on-warn enabled, so if this can be handled, returning an error is good.
Well it can't really be handled because the driver is trying to unregister an in-use algorithm so it's going to die one way or another.
But returning here at least means that if this is happening through shutdown then the system at least gets a chance to reboot.
Cheers,