OSDN Git Service

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)
commit139838fffec40296d7235982a1a9b917ba31530f
tree1751808b4b9c8d48a5ead02d5ff99420754084bf
parent80068c93688f6143100859c4856f895801c1a1d9
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