Merge branch 'master' into upstream
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / hid / hid-egalax.c
index bbab6cff3518e5e7eb657be32f2c8afe8ebeef6d..72b1dd8d16ce9d9a0c97802982e5e15eb8bfd282 100644 (file)
@@ -221,7 +221,7 @@ static int egalax_probe(struct hid_device *hdev, const struct hid_device_id *id)
        struct egalax_data *td;
        struct hid_report *report;
 
-       td = kmalloc(sizeof(struct egalax_data), GFP_KERNEL);
+       td = kzalloc(sizeof(struct egalax_data), GFP_KERNEL);
        if (!td) {
                hid_err(hdev, "cannot allocate eGalax data\n");
                return -ENOMEM;