]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Drivers: hv: vmbus: Cleanup vmbus_teardown_gpadl()
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 27 Aug 2014 23:25:32 +0000 (16:25 -0700)
committerZefan Li <lizefan@huawei.com>
Mon, 2 Feb 2015 09:04:40 +0000 (17:04 +0800)
commit3adbbcc200f4911123fa5c71f729958a54e9c51d
tree26edd69b7953e1f5d5c48ec3204aef250571e42b
parent3aae84bbb972584b095a9d170631d825c1dd9de2
Drivers: hv: vmbus: Cleanup vmbus_teardown_gpadl()

commit 66be653083057358724d56d817e870e53fb81ca7 upstream.

Eliminate calls to BUG_ON() by properly handling errors. In cases where
rollback is possible, we will return the appropriate error to have the
calling code decide how to rollback state. In the case where we are
transferring ownership of the guest physical pages to the host,
we will wait for the host to respond.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/hv/channel.c