diff mbox

Fixed missing inits in hid-cando.c

Message ID 20100416202358.7839695164@smtp.lii-enac.fr (mailing list archive)
State Accepted
Commit 653efbb4b2c796a39c67501e4bce983a41278dfa
Headers show

Commit Message

Stephane Chatty April 16, 2010, 8:23 p.m. UTC
None
diff mbox

Patch

diff -rupN a/drivers/hid/hid-cando.c b/drivers/hid/hid-cando.c
--- a/drivers/hid/hid-cando.c	2010-04-16 22:04:20.000000000 +0200
+++ b/drivers/hid/hid-cando.c	2010-04-16 22:02:38.000000000 +0200
@@ -211,6 +211,9 @@  static int cando_probe(struct hid_device
 		return -ENOMEM;
 	}
 	hid_set_drvdata(hdev, td);
+	td->first = false;
+	td->oldest = -1;
+	td->valid = false;
 
 	ret = hid_parse(hdev);
 	if (!ret)