]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Drivers: hv: vmbus: do cleanup on all vmbus_open() failure paths
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 7 May 2015 00:47:40 +0000 (17:47 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:28:43 +0000 (18:28 -0800)
commitc53ac2beb890d0dd6d831422cd039b3a729bdbdc
tree1262e58de07fdb05b1e66b44827c3af723ebab34
parent82fd9f99c93ea27cffe5ae77c056984b5d5983ee
Drivers: hv: vmbus: do cleanup on all vmbus_open() failure paths

In case there was an error reported in the response to the CHANNELMSG_OPENCHANNEL
call we need to do the cleanup as a vmbus_open() user won't be doing it after
receiving an error. The cleanup should be done on all failure paths. We also need
to avoid returning open_info->response.open_result.status as the return value as
all other errors we return from vmbus_open() are -EXXX and vmbus_open() callers
are not supposed to analyze host error codes.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ffc151f3c83c25ec06d5ad13a78d0fc066c7167e)

Orabug: 21886720
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/hv/channel.c