From 33b06938cf81939135448ed448ee5aa95fa86d04 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 17 Sep 2013 00:58:36 +0300 Subject: hv: vmbus: fix vmbus_recvpacket_raw() return code Don't return success if the buffer has not been initialized. Signed-off-by: Dan Carpenter Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- drivers/hv/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/hv') diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 94d5459..cea623c 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); -- cgit v1.1