summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/hv_mouse.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-09-29 11:54:44 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-04 10:39:32 -0700
commit01584892dbf915a3921c5fc2607363e07023ef5c (patch)
tree4f209d0b3c717ea748232a00d64b74cb7e6320ef /drivers/staging/hv/hv_mouse.c
parent7f2bad4bd0d22f4cdd876152f1eeb9a8cfdc8d9d (diff)
downloadop-kernel-dev-01584892dbf915a3921c5fc2607363e07023ef5c.zip
op-kernel-dev-01584892dbf915a3921c5fc2607363e07023ef5c.tar.gz
Staging: hv: mousevsc: Change the allocation flags to reflect interrupt context
Change the allocation flags to reflect interrupt context. 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/hv_mouse.c')
-rw-r--r--drivers/staging/hv/hv_mouse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c
index 016d7e5..b7cc164 100644
--- a/drivers/staging/hv/hv_mouse.c
+++ b/drivers/staging/hv/hv_mouse.c
@@ -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",
@@ -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",
@@ -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;
OpenPOWER on IntegriCloud