diff options
| -rw-r--r-- | drivers/pci/endpoint/functions/pci-epf-test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c index d0b91da49bf4..ed5cd28b9572 100644 --- a/drivers/pci/endpoint/functions/pci-epf-test.c +++ b/drivers/pci/endpoint/functions/pci-epf-test.c | |||
| @@ -591,6 +591,11 @@ static int __init pci_epf_test_init(void) | |||
| 591 | 591 | ||
| 592 | kpcitest_workqueue = alloc_workqueue("kpcitest", | 592 | kpcitest_workqueue = alloc_workqueue("kpcitest", |
| 593 | WQ_MEM_RECLAIM | WQ_HIGHPRI, 0); | 593 | WQ_MEM_RECLAIM | WQ_HIGHPRI, 0); |
| 594 | if (!kpcitest_workqueue) { | ||
| 595 | pr_err("Failed to allocate the kpcitest work queue\n"); | ||
| 596 | return -ENOMEM; | ||
| 597 | } | ||
| 598 | |||
| 594 | ret = pci_epf_register_driver(&test_driver); | 599 | ret = pci_epf_register_driver(&test_driver); |
| 595 | if (ret) { | 600 | if (ret) { |
| 596 | pr_err("Failed to register pci epf test driver --> %d\n", ret); | 601 | pr_err("Failed to register pci epf test driver --> %d\n", ret); |
