Drivers: hv: vmbus: Fix a bug in the handling of channel offers
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 26 Aug 2013 21:08:58 +0000 (14:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Sep 2013 14:06:46 +0000 (07:06 -0700)
commita493880d86c8bf516c63a4f3a50b39832f35acc1
treeb809455ba48ec538dfca22adf6f21154f2e4d379
parent5d6d1d5cc50b4226d63303f061ebf2662395b627
Drivers: hv: vmbus: Fix a bug in the handling of channel offers

commit 42dceebe34600b2d02a38baa3e869009ba3d14c7 upstream.

The channel state should be correctly set before registering the device. In the current
code the driver probe would fail for channels that have been rescinded and subsequently
re-offered. Fix the bug.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c