OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:04:00 +0000 (22:04 +0200)
commitb9b4320c38bf2fadfd9299c36165c46f131200e0
treebe27ccc4074a751d5a24998db51613389dea9191
parent5c87838eadeb1a63546e36f76917241d8fa6ea52
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>
drivers/hv/channel.c