File fix-412.diff of Package scsi_ep_front

Index: SD100_Card_Driver/scsi_ep_front/epfront_transfer.c
===================================================================
--- SD100_Card_Driver.orig/scsi_ep_front/epfront_transfer.c
+++ SD100_Card_Driver/scsi_ep_front/epfront_transfer.c
@@ -2094,9 +2094,13 @@ static int sdi_dev_map(struct sdi_pdev_i
 	vector_threshold = SDI_MIN_MSIX_COUNT;
 	vectors = SDI_PF12_MAX_CQ_NR;
 
 	while (vectors >= vector_threshold) {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+		result = pci_enable_msix_exact(sdev->pdev, sdev->entry, vectors);
+#else
 		result = pci_enable_msix(sdev->pdev, sdev->entry, vectors);
+#endif
 		if (!result)     /* Success in acquiring all requested vectors. */
 			break;
 		else if (result < 0)
 			vectors = 0; /* Nasty failure, quit now */