Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267945
b: refs/heads/master
c: 3d5cad9
h: refs/heads/master
i:
  267943: 2643805
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 25, 2011
1 parent 4cfdd9d commit b2d78ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2598f017f02bbc3623503c6e08f22f7ea473cdd
refs/heads/master: 3d5cad97c4be2bfc5cb4e52a0972c6e3bf8c278d
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ static void mousevsc_on_channel_callback(void *context)
}
break;
}
} else if (ret == -2) {
} else if (ret == -ENOBUFS) {
/* Handle large packet */
bufferlen = bytes_recvd;
buffer = kzalloc(bytes_recvd, GFP_KERNEL);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ static void netvsc_channel_cb(void *context)

break;
}
} else if (ret == -2) {
} else if (ret == -ENOBUFS) {
/* Handle large packet */
buffer = kmalloc(bytes_recvd, GFP_ATOMIC);
if (buffer == NULL) {
Expand Down

0 comments on commit b2d78ae

Please sign in to comment.