Unverified Commit a53ec4dd authored by Karen Xie's avatar Karen Xie Committed by GitHub

Merge pull request #46 from unhold/no-msix-crash

Fix a Linux crash when pci_msix_vec_count() returns -EINVAL
parents 7b7b4ce4 30246046
......@@ -532,7 +532,7 @@ int intr_setup(struct xlnx_dma_dev *xdev)
pr_debug("dev %s, xdev->num_vecs = %d\n",
dev_name(&xdev->conf.pdev->dev), xdev->num_vecs);
if (num_vecs == 0) {
if (num_vecs <= 0) {
pr_warn("MSI-X not supported, running in polled mode\n");
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment