diff options
| -rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c index 5ee18660bc33..c9617675f934 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c | |||
| @@ -70,7 +70,7 @@ static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) | |||
| 70 | netdev_err(bp->dev, "vf ndo called though sriov is disabled\n"); | 70 | netdev_err(bp->dev, "vf ndo called though sriov is disabled\n"); |
| 71 | return -EINVAL; | 71 | return -EINVAL; |
| 72 | } | 72 | } |
| 73 | if (vf_id >= bp->pf.max_vfs) { | 73 | if (vf_id >= bp->pf.active_vfs) { |
| 74 | netdev_err(bp->dev, "Invalid VF id %d\n", vf_id); | 74 | netdev_err(bp->dev, "Invalid VF id %d\n", vf_id); |
| 75 | return -EINVAL; | 75 | return -EINVAL; |
| 76 | } | 76 | } |
