forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
9106e5db83
commit
cbccb18f4f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user