hyperv: Move wait completion msg code into rndis_filter_halt_device()
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 3 Aug 2012 09:32:18 +0000 (09:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Aug 2012 23:51:11 +0000 (16:51 -0700)
We need to wait for send_completion msg before put_rndis_request() at
the end of rndis_filter_halt_device(). Otherwise, netvsc_send_completion()
may reference freed memory which is overwritten, and cause panic.

Reported-by: Long Li <longli@microsoft.com>
Reported-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found