From: Vitaly Kuznetsov Date: Thu, 7 May 2015 00:47:40 +0000 (-0700) Subject: Drivers: hv: vmbus: do cleanup on all vmbus_open() failure paths X-Git-Tag: omap-for-v4.2/fixes-rc1^2~94^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffc151f3c83c25ec06d5ad13a78d0fc066c7167e;p=pandora-kernel.git 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 Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed