]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2599d0d5f12f544afd9dc4586f6a8cf88176b62b
treead529c6e0c399f54995778767c69e94325171395
parent8537cf782094ca93e4b635204a89a7fcf1d7565d
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