summaryrefslogtreecommitdiff
path: root/net/sched
diff options
context:
space:
mode:
authorXi Wang <wangxi11@huawei.com>2018-06-06 16:07:52 +0300
committerDavid S. Miller <davem@davemloft.net>2018-06-06 21:02:48 +0300
commit6444e2a5f1e680278b58ced3568bdff84afe14a5 (patch)
tree54d907607d58aa3a9820c7070ec76a159a209ff3 /net/sched
parent1819e40908ee76c7219287224c22c772556c927e (diff)
downloadlinux-6444e2a5f1e680278b58ced3568bdff84afe14a5.tar.xz
net: hns3: Fix for VF mailbox receiving unknown message
Before the firmware updates the crq's tail pointer, if the VF driver reads the data in the crq, the data may be incomplete at this time, which will lead to the driver read an unknown message. This patch fixes it by checking if crq is empty before reading the message. Fixes: b11a0bb231f3 ("net: hns3: Add mailbox support to VF driver") Signed-off-by: Xi Wang <wangxi11@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions