Skip to content
Snippets Groups Projects
Commit 0ce20b79 authored by Jiaran Zhang's avatar Jiaran Zhang Committed by Yang Yingliang
Browse files

net: hns3: fix the logic for clearing resp_msg


driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

----------------------------

In the hclge_mbx_handler function, if there are two consecutive mailbox
messages that require resp_msg, the first message's resp_msg is not
cleared after being processed, causing the second resp_msg data is
incorrect.

Fix it by clearing the resp_msg before processing every mailbox message.

Fixes: bb5790b7 ("net: hns3: refactor mailbox response scheme between PF and VF")

Signed-off-by: default avatarJiaran Zhang <zhangjiaran@huawei.com>
Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: default avatarli yongxin <liyongxin1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 68c65287
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment