Thread (2 messages) 2 messages, 2 authors, 2021-10-25

Re: [PATCH] dmanegine: idxd: fix resource free ordering on driver removal

flat view

From: Vinod Koul <vkoul@kernel.org>
Date: 2021-10-25 06:21:38

On 21-09-21, 13:15, Dave Jiang wrote:
Fault triggers on ioread32() when pci driver unbind is envoked. The
placement of idxd sub-driver removal causes the probing of the device mmio
region after the mmio mapping being torn down. The driver needs the
sub-drivers to be unbound but not release the idxd context until all
shutdown activities has been done. Move the sub-driver unregistering up
before the remove() calls shutdown(). But take a device ref on the
idxd->conf_dev so that the memory does not get freed in ->release(). When
all cleanup activities has been done, release the ref to allow the idxd
memory to be freed.
Applied, thanks

-- 
~Vinod
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help