]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerZefan Li <lizefan@huawei.com>
Fri, 18 Sep 2015 01:20:23 +0000 (09:20 +0800)
commita76338a925c7647c6f7840eb36c9c85265e51df0
tree76d647869067abebf8c2d3392f439187031bbe99
parentb1113711799e3b7dfa4ca18d9a873245112996a9
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: Zefan Li <lizefan@huawei.com>
drivers/hv/channel.c