diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-08-25 09:48:59 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-25 15:23:18 -0700 |
commit | 3d5cad97c4be2bfc5cb4e52a0972c6e3bf8c278d (patch) | |
tree | 8716713130238925a8c1ac216ac9432bd6f3391b /drivers/staging/hv/channel.c | |
parent | d2598f017f02bbc3623503c6e08f22f7ea473cdd (diff) | |
download | op-kernel-dev-3d5cad97c4be2bfc5cb4e52a0972c6e3bf8c278d.zip op-kernel-dev-3d5cad97c4be2bfc5cb4e52a0972c6e3bf8c278d.tar.gz |
Staging: hv: vmbus: Cleanup the error return value in vmbus_recvpacket_raw()
Use standard Linux errno values.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/channel.c')
-rw-r--r-- | drivers/staging/hv/channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/channel.c b/drivers/staging/hv/channel.c index 9eb8def..ac92c1f 100644 --- a/drivers/staging/hv/channel.c +++ b/drivers/staging/hv/channel.c @@ -811,7 +811,7 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer, pr_err("Buffer too small - needed %d bytes but " "got space for only %d bytes\n", packetlen, bufferlen); - return -2; + return -ENOBUFS; } *requestid = desc.trans_id; |