X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fhid%2Fhid-egalax.c;fp=drivers%2Fhid%2Fhid-egalax.c;h=72b1dd8d16ce9d9a0c97802982e5e15eb8bfd282;hb=2ade0c1d9d93b7642212657ef76f4a1e30233711;hp=bbab6cff3518e5e7eb657be32f2c8afe8ebeef6d;hpb=504499f22c08a03e2e19dc88d31aa0ecd2ac815e;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/hid/hid-egalax.c b/drivers/hid/hid-egalax.c index bbab6cff3518..72b1dd8d16ce 100644 --- a/drivers/hid/hid-egalax.c +++ b/drivers/hid/hid-egalax.c @@ -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;