diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-09-16 23:58:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-27 01:34:55 +0200 |
commit | 33b06938cf81939135448ed448ee5aa95fa86d04 (patch) | |
tree | b8e7d816f08f59063a637fde440b6990194e457f | |
parent | mmc: cb710: drop free_irq for devm_request_irq allocated irq (diff) | |
download | linux-33b06938cf81939135448ed448ee5aa95fa86d04.tar.xz linux-33b06938cf81939135448ed448ee5aa95fa86d04.zip |
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>
-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); |