qlcnic: Fix validation of link event command.
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Thu, 9 May 2013 09:25:16 +0000 (09:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 May 2013 23:01:15 +0000 (16:01 -0700)
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>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c

index c81be2da119bdc4b9aef1d3f770f3d76d4074b56..1a66ccded235e202616be03ae9bdb08c6bad9155 100644 (file)
@@ -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;
 }
 
This page took 0.026252 seconds and 5 git commands to generate.