Re: [PATCH net-next] hv_netvsc: Fix the order of num_sc_offered decrement

From: David Miller
Date: Wed Mar 23 2016 - 21:54:10 EST


From: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>
Date: Wed, 23 Mar 2016 14:54:48 -0700

> 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@xxxxxxxxxxxxx>
> Reviewed-by: K. Y. Srinivasan <kys@xxxxxxxxxxxxx>

Applied, thanks.