diff mbox

[1/6] hid: egalax: Use kzalloc

Message ID 1286978302-30034-2-git-send-email-rydberg@euromail.se (mailing list archive)
State Accepted
Headers show

Commit Message

Henrik Rydberg Oct. 13, 2010, 1:58 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/hid/hid-egalax.c b/drivers/hid/hid-egalax.c
index 54b017a..5a1b52e 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) {
 		dev_err(&hdev->dev, "cannot allocate eGalax data\n");
 		return -ENOMEM;