netvsc: fix error unwind on device setup failure
authorstephen hemminger <stephen@networkplumber.org>
Fri, 28 Jul 2017 15:59:46 +0000 (08:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2017 22:25:43 +0000 (15:25 -0700)
commit493933472d33d3e82d6323842edeb281199ee430
treead529c6e0c399f54995778767c69e94325171395
parent7426b1a51803ba2d368177363a134b98b0a8d1c0
netvsc: fix error unwind on device setup failure

If setting receive buffer fails, the error unwind would cause
kernel panic because it was not correctly doing RCU and NAPI
unwind.  RCU'd pointer needs to be reset to NULL, and NAPI needs
to be disabled not deleted.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c