mirror of https://gitee.com/openkylin/linux.git
vdpa: ifcvf: return err when fail to request config irq
We ignore the err of requesting config interrupt, fix this. Fixes:e7991f376a
("ifcvf: implement config interrupt in IFCVF") Cc: Zhu Lingshan <lingshan.zhu@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20200723091254.20617-1-jasowang@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Zhu Lingshan <lingshan.zhu@intel.com> Fixes:e7991f376a
("ifcvf: implement config interrupt in IFCVF") Cc: Zhu Lingshan <a class="moz-txt-link-rfc2396E" href="mailto:lingshan.zhu@intel.com"><lingshan.zhu@intel.com></a> Signed-off-by: Jason Wang <a class="moz-txt-link-rfc2396E" href="mailto:jasowang@redhat.com"><jasowang@redhat.com></a> Tested-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
parent
d012a7190f
commit
9f4ce5d72b
|
@ -78,6 +78,10 @@ static int ifcvf_request_irq(struct ifcvf_adapter *adapter)
|
|||
ret = devm_request_irq(&pdev->dev, irq,
|
||||
ifcvf_config_changed, 0,
|
||||
vf->config_msix_name, vf);
|
||||
if (ret) {
|
||||
IFCVF_ERR(pdev, "Failed to request config irq\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
for (i = 0; i < IFCVF_MAX_QUEUE_PAIRS * 2; i++) {
|
||||
snprintf(vf->vring[i].msix_name, 256, "ifcvf[%s]-%d\n",
|
||||
|
|
Loading…
Reference in New Issue