aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-09-16 17:58:36 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 19:34:55 -0400
commit33b06938cf81939135448ed448ee5aa95fa86d04 (patch)
treeb8e7d816f08f59063a637fde440b6990194e457f /drivers/hv
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')
-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,
811 if (signal) 811 if (signal)
812 vmbus_setevent(channel); 812 vmbus_setevent(channel);
813 813
814 return 0; 814 return ret;
815} 815}
816EXPORT_SYMBOL_GPL(vmbus_recvpacket_raw); 816EXPORT_SYMBOL_GPL(vmbus_recvpacket_raw);