diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2019-10-30 18:32:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-12 21:18:43 +0300 |
commit | 904e41c939f48a6ab38db3009ac3f59805e56a86 (patch) | |
tree | d06fe89bb8c5539c88afeedb7620405943dd91ce /drivers/net/dummy.c | |
parent | 15c1c15be2a8fd0ef005972adc9c2a7782a2f558 (diff) | |
download | linux-904e41c939f48a6ab38db3009ac3f59805e56a86.tar.xz |
hv_netvsc: Fix error handling in netvsc_attach()
[ Upstream commit 719b85c336ed35565d0f3982269d6f684087bb00 ]
If rndis_filter_open() fails, we need to remove the rndis device created
in earlier steps, before returning an error code. Otherwise, the retry of
netvsc_attach() from its callers will fail and hang.
Fixes: 7b2ee50c0cd5 ("hv_netvsc: common detach logic")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/dummy.c')
0 files changed, 0 insertions, 0 deletions