summaryrefslogtreecommitdiff
path: root/drivers/hv/channel.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-09-17 00:58:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 16:34:55 -0700
commit33b06938cf81939135448ed448ee5aa95fa86d04 (patch)
treeb8e7d816f08f59063a637fde440b6990194e457f /drivers/hv/channel.c
parent0a335b6d47f014c41b8a0c8cbdc6d4886c10f5d5 (diff)
hv: vmbus: fix vmbus_recvpacket_raw() return code
Don't return success if the buffer has not been initialized. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/channel.c')
-rw-r--r--drivers/hv/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c
index 94d54591b226..cea623c36ae2 100644
--- a/drivers/hv/channel.c
+++ b/drivers/hv/channel.c
@@ -811,6 +811,6 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer,
if (signal)
vmbus_setevent(channel);
- return 0;
+ return ret;
}
EXPORT_SYMBOL_GPL(vmbus_recvpacket_raw);