summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2012-10-02 05:30:20 +0000
committerDavid S. Miller <davem@davemloft.net>2012-10-02 14:39:30 -0400
commitea4963745f712a746ccb45871a22e0814141a891 (patch)
treea138176e0cf59b3fbb58c6ec080ab196ca259b11 /drivers/net
parentfb1d074edb92604f313ac671f67e806c3223d191 (diff)
downloadlinux-3.10-ea4963745f712a746ccb45871a22e0814141a891.tar.gz
linux-3.10-ea4963745f712a746ccb45871a22e0814141a891.tar.bz2
linux-3.10-ea4963745f712a746ccb45871a22e0814141a891.zip
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: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/hyperv/rndis_filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c
index 1337b64b36a..617eb2e4b06 100644
--- a/drivers/net/hyperv/rndis_filter.c
+++ b/drivers/net/hyperv/rndis_filter.c
@@ -647,6 +647,7 @@ int rndis_filter_set_packet_filter(struct rndis_device *dev, u32 new_filter)
if (t == 0) {
netdev_err(ndev,
"timeout before we got a set response...\n");
+ ret = -ETIMEDOUT;
/*
* We can't deallocate the request since we may still receive a
* send completion for it.