diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2016-03-23 14:54:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-23 21:51:08 -0400 |
commit | 3f735131d9c2523eb54a6c5099fa8c60a4292d48 (patch) | |
tree | 04a88fdbeb47170da18679d7d8bbf7c1876c57c2 /drivers/watchdog/diag288_wdt.c | |
parent | 5e82b4b2a0015ed0a659b22ef2ee3409a3c39e54 (diff) | |
download | blackbird-op-linux-3f735131d9c2523eb54a6c5099fa8c60a4292d48.tar.gz blackbird-op-linux-3f735131d9c2523eb54a6c5099fa8c60a4292d48.zip |
hv_netvsc: Fix the order of num_sc_offered decrement
Reorder the code in netvsc_sc_open(), so num_sc_offered is only decremented
after vmbus_open() is called. This avoid pontential race of removing device
before all channels are setup.
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/watchdog/diag288_wdt.c')
0 files changed, 0 insertions, 0 deletions