]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/hid/i2c-hid/i2c-hid.c
Merge branch 'for-3.15/i2c-hid' into for-linus
[mirror_ubuntu-artful-kernel.git] / drivers / hid / i2c-hid / i2c-hid.c
index 360674272507bef7aea6c1bfc819555bc03fd734..c121990c6beb0f90afac972187a6c881a5ffec83 100644 (file)
@@ -591,7 +591,7 @@ static void i2c_hid_request(struct hid_device *hid, struct hid_report *rep,
        int ret;
        int len = i2c_hid_get_report_length(rep) - 2;
 
-       buf = kzalloc(len, GFP_KERNEL);
+       buf = hid_alloc_report_buf(rep, GFP_KERNEL);
        if (!buf)
                return;