Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268656
b: refs/heads/master
c: 0158489
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent 9a7ddb9 commit 9433282
Show file tree
Hide file tree
Showing 2 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: 7f2bad4bd0d22f4cdd876152f1eeb9a8cfdc8d9d
refs/heads/master: 01584892dbf915a3921c5fc2607363e07023ef5c
6 changes: 3 additions & 3 deletions trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device,
desc = &device_info->hid_descriptor;
WARN_ON(desc->bLength == 0);

input_device->hid_desc = kzalloc(desc->bLength, GFP_KERNEL);
input_device->hid_desc = kzalloc(desc->bLength, GFP_ATOMIC);

if (!input_device->hid_desc) {
pr_err("unable to allocate hid descriptor - size %d",
Expand All @@ -342,7 +342,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device,
/* Save the report desc */
input_device->report_desc_size = desc->desc[0].wDescriptorLength;
input_device->report_desc = kzalloc(input_device->report_desc_size,
GFP_KERNEL);
GFP_ATOMIC);

if (!input_device->report_desc) {
pr_err("unable to allocate report descriptor - size %d",
Expand Down Expand Up @@ -541,7 +541,7 @@ static void mousevsc_on_channel_callback(void *context)
} else if (ret == -ENOBUFS) {
/* Handle large packet */
bufferlen = bytes_recvd;
buffer = kzalloc(bytes_recvd, GFP_KERNEL);
buffer = kzalloc(bytes_recvd, GFP_ATOMIC);

if (buffer == NULL) {
buffer = packet;
Expand Down

0 comments on commit 9433282

Please sign in to comment.