Drivers: hv: vmbus: Cleanup vmbus_teardown_gpadl()
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 27 Aug 2014 23:25:32 +0000 (16:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:38:21 +0000 (09:38 -0700)
commitb8c396a6c072ddbdd31540d61bd24a12445e33a0
treefbb6b5df78928b075375332252c7f329a53daa9a
parent5fe80abd8a4fd879a6bf02e3936f03dbffc57c41
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>
drivers/hv/channel.c