hv: vmbus: fix vmbus_recvpacket_raw() return code
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 Sep 2013 21:58:36 +0000 (00:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 23:34:55 +0000 (16:34 -0700)
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>
drivers/hv/channel.c

index 94d54591b2265cca6b6470dbae4ee3184af00192..cea623c36ae23cc007138371b14ef05e770fe6d0 100644 (file)
@@ -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);