summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-debug.c')
-rw-r--r--drivers/hid/hid-debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c
index 4f4e7a08a07b..8469b6964ff6 100644
--- a/drivers/hid/hid-debug.c
+++ b/drivers/hid/hid-debug.c
@@ -457,7 +457,7 @@ static char *resolv_usage_page(unsigned page, struct seq_file *f) {
457 char *buf = NULL; 457 char *buf = NULL;
458 458
459 if (!f) { 459 if (!f) {
460 buf = kzalloc(sizeof(char) * HID_DEBUG_BUFSIZE, GFP_ATOMIC); 460 buf = kzalloc(HID_DEBUG_BUFSIZE, GFP_ATOMIC);
461 if (!buf) 461 if (!buf)
462 return ERR_PTR(-ENOMEM); 462 return ERR_PTR(-ENOMEM);
463 } 463 }
@@ -685,7 +685,7 @@ void hid_dump_report(struct hid_device *hid, int type, u8 *data,
685 char *buf; 685 char *buf;
686 unsigned int i; 686 unsigned int i;
687 687
688 buf = kmalloc(sizeof(char) * HID_DEBUG_BUFSIZE, GFP_ATOMIC); 688 buf = kmalloc(HID_DEBUG_BUFSIZE, GFP_ATOMIC);
689 689
690 if (!buf) 690 if (!buf)
691 return; 691 return;
@@ -1088,7 +1088,7 @@ static int hid_debug_events_open(struct inode *inode, struct file *file)
1088 goto out; 1088 goto out;
1089 } 1089 }
1090 1090
1091 if (!(list->hid_debug_buf = kzalloc(sizeof(char) * HID_DEBUG_BUFSIZE, GFP_KERNEL))) { 1091 if (!(list->hid_debug_buf = kzalloc(HID_DEBUG_BUFSIZE, GFP_KERNEL))) {
1092 err = -ENOMEM; 1092 err = -ENOMEM;
1093 kfree(list); 1093 kfree(list);
1094 goto out; 1094 goto out;