]> git.baikalelectronics.ru Git - kernel.git/commit
misc: pci_endpoint_test: Fix pci_endpoint_test not releasing resources on remove
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 11 Oct 2017 08:44:37 +0000 (14:14 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Oct 2017 20:33:46 +0000 (15:33 -0500)
commit1323606d770ffbc0965a2434334860f465e7fafe
tree1751808b4b9c8d48a5ead02d5ff99420754084bf
parent1ef0adaea059e73e827d9d19fc6da70e5efd73fa
misc: pci_endpoint_test: Fix pci_endpoint_test not releasing resources on remove

sscanf(misc_device->name, DRV_MODULE_NAME ".%d", &id) in
pci_endpoint_test_remove() returns 0, which results in returning early
without releasing the resources.  This is as a result of misc_device not
having a valid name. Fix it here.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/misc/pci_endpoint_test.c