]> Git Repo - linux.git/blobdiff - drivers/hid/hid-debug.c
treewide: kmalloc() -> kmalloc_array()
[linux.git] / drivers / hid / hid-debug.c
index 4f4e7a08a07be5c0a37c129905e89d4e03aa10e0..6d99534ac691bb8b09b4cbf399325b2cc932bbc6 100644 (file)
@@ -685,7 +685,7 @@ void hid_dump_report(struct hid_device *hid, int type, u8 *data,
        char *buf;
        unsigned int i;
 
-       buf = kmalloc(sizeof(char) * HID_DEBUG_BUFSIZE, GFP_ATOMIC);
+       buf = kmalloc(HID_DEBUG_BUFSIZE, GFP_ATOMIC);
 
        if (!buf)
                return;
This page took 0.044423 seconds and 4 git commands to generate.