Răsfoiți Sursa

qlcnic: Fix validation of link event command.

o VF driver that has enabled asynchronous link events
  may not set BIT_8 in the request, if it does not require
  link state in the response.

Signed-off-by: Pratik Pujar <pratik.pujar@qlogic.com>
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Rajesh Borundia 12 ani în urmă
părinte
comite
cbccb18f4f
1 a modificat fișierele cu 0 adăugiri și 3 ștergeri
  1. 0 3
      drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c

+ 0 - 3
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c

@@ -1133,9 +1133,6 @@ static int qlcnic_sriov_validate_linkevent(struct qlcnic_vf_info *vf,
 	if ((cmd->req.arg[1] >> 16) != vf->rx_ctx_id)
 		return -EINVAL;
 
-	if (!(cmd->req.arg[1] & BIT_8))
-		return -EINVAL;
-
 	return 0;
 }