Drivers: hv: vmbus: Fix a bug in the error path in vmbus_open()
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 27 Feb 2015 19:26:04 +0000 (11:26 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Aug 2015 23:31:59 +0000 (00:31 +0100)
commitc551ce23bfc919747797f8d0fa9ecf319508378d
tree780531402623ba1fd9058594e80421d6efbc8f2c
parent5f7c3cbe030b39e9adb584c2be1fb842bfc0899f
Drivers: hv: vmbus: Fix a bug in the error path in vmbus_open()

commit 40384e4bbeb9f2651fe9bffc0062d9f31ef625bf upstream.

Correctly rollback state if the failure occurs after we have handed over
the ownership of the buffer to the host.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hv/channel.c