提交 ea496374 编写于 作者: H Haiyang Zhang 提交者: David S. Miller

hyperv: Fix the missing return value in rndis_filter_set_packet_filter()

Return ETIMEDOUT when the reply message is not received in time.
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 fb1d074e
...@@ -647,6 +647,7 @@ int rndis_filter_set_packet_filter(struct rndis_device *dev, u32 new_filter) ...@@ -647,6 +647,7 @@ int rndis_filter_set_packet_filter(struct rndis_device *dev, u32 new_filter)
if (t == 0) { if (t == 0) {
netdev_err(ndev, netdev_err(ndev,
"timeout before we got a set response...\n"); "timeout before we got a set response...\n");
ret = -ETIMEDOUT;
/* /*
* We can't deallocate the request since we may still receive a * We can't deallocate the request since we may still receive a
* send completion for it. * send completion for it.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册