diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-09-17 01:58:36 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-27 03:34:55 +0400 |
commit | 33b06938cf81939135448ed448ee5aa95fa86d04 (patch) | |
tree | b8e7d816f08f59063a637fde440b6990194e457f /drivers/hv/channel.c | |
parent | 0a335b6d47f014c41b8a0c8cbdc6d4886c10f5d5 (diff) | |
download | linux-33b06938cf81939135448ed448ee5aa95fa86d04.tar.xz |
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.c | 2 |
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); |