aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorHaiyang Zhang <[email protected]>2016-03-23 21:54:48 +0000
committerDavid S. Miller <[email protected]>2016-03-24 01:51:08 +0000
commit3f735131d9c2523eb54a6c5099fa8c60a4292d48 (patch)
tree04a88fdbeb47170da18679d7d8bbf7c1876c57c2 /net/switchdev/switchdev.c
parentnet: Fix typos and whitespace. (diff)
downloadkernel-3f735131d9c2523eb54a6c5099fa8c60a4292d48.tar.gz
kernel-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 <[email protected]> Reviewed-by: K. Y. Srinivasan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions