]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: endpoint: Fix NULL pointer dereference error when CONFIGFS is disabled
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 9 Jul 2018 20:18:56 +0000 (15:18 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 9 Jul 2018 20:19:51 +0000 (15:19 -0500)
commit722e93d7346ecbfb1ed4357b3e87caa7f9bb12ee
tree62ed69ff68963bd4c717c835df35973d5adece7d
parenta3063dbdddea3866145a3482400edf6ad2129a83
PCI: endpoint: Fix NULL pointer dereference error when CONFIGFS is disabled

commit c41f839bc735 ("PCI: endpoint: Create configfs entry for each
pci_epf_device_id table entry") while adding configfs entry for each
pci_epf_device_id table entry introduced a NULL pointer dereference error
when CONFIG_PCI_ENDPOINT_CONFIGFS is not enabled.

Fix it here.

Fixes: c41f839bc735 ("PCI: endpoint: Create configfs entry for each
pci_epf_device_id table entry")
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
[lorenzo.pieralisi: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/endpoint/pci-epf-core.c