> I have taken the original patch from Prarit and made changes to move the > allocation > inside the main for loop along with request_irq. > > I feel doing devres would be good but going to take some time. However, we > need to fix this now and hence > am submitting this patch. When we have a final devres solution working and > tested ,we would move over. I think this is a good way to go. + if (!phba->msi_name[i]) { + ret = -ENOMEM; + if (!i) + return ret; + goto free_msix_irqs; + } That "if (!i)" stuff is useless. If you enter the loop with i==0 j will become -1 which causes the loop never to execute. The same is true for the request_irq() error handling below. Eike -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html