Re: [PATCH 0/3] pci_endpoint_test: Fix module removal/insertion cycle

From: Bjorn Helgaas
Date: Tue Oct 17 2017 - 15:16:52 EST


On Wed, Oct 11, 2017 at 02:14:35PM +0530, Kishon Vijay Abraham I wrote:
> This series fixes module removal/insertion cycle of pci_endpoint_test.
>
> Without this series, when trying to modprobe pci_endpoint_test after
> rmmod pci_endpoint_test results in the following errors.
>
> pci-endpoint-test 0000:01:00.0: BAR 0: can't reserve [mem 0x20204600-0x202046ff]
> pci-endpoint-test 0000:01:00.0: Cannot obtain PCI resources
> pci-endpoint-test: probe of 0000:01:00.0 failed with error -16
>
> Kishon Vijay Abraham I (3):
> misc: pci_endpoint_test: Fix failure path return values in probe
> misc: pci_endpoint_test: Fix pci_endpoint_test not releasing resources
> on remove
> misc: pci_endpoint_test: Fix BUG_ON error during pci_disable_msi
>
> drivers/misc/pci_endpoint_test.c | 22 ++++++++++++++++++++--
> 1 file changed, 20 insertions(+), 2 deletions(-)

Applied to pci/endpoint for v4.15, thanks!