From patchwork Fri Apr 16 20:23:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephane Chatty X-Patchwork-Id: 93203 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3GKO3v6012230 for ; Fri, 16 Apr 2010 20:24:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932408Ab0DPUYB (ORCPT ); Fri, 16 Apr 2010 16:24:01 -0400 Received: from 89-230.252-81.static-ip.oleane.fr ([81.252.230.89]:52137 "EHLO smtp.lii-enac.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932396Ab0DPUYA (ORCPT ); Fri, 16 Apr 2010 16:24:00 -0400 Received: by smtp.lii-enac.fr (DoorWays, from userid 2000) id 7839695164; Fri, 16 Apr 2010 22:23:58 +0200 (CEST) Date: Fri, 16 Apr 2010 22:23:58 +0200 To: dmitry.torokhov@gmail.com, jkosina@suse.cz, linux-input@vger.kernel.org Cc: priya.vijayan@intel.com, floe@butterbrot.org Subject: [PATCH] Fixed missing inits in hid-cando.c User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Message-Id: <20100416202358.7839695164@smtp.lii-enac.fr> From: chatty@lii-enac.fr (Stephane Chatty) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 16 Apr 2010 20:24:05 +0000 (UTC) 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)