From patchwork Thu May 20 04:55:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 101122 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 o4K4txSq001518 for ; Thu, 20 May 2010 04:56:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753492Ab0ETEz5 (ORCPT ); Thu, 20 May 2010 00:55:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5395 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200Ab0ETEz4 (ORCPT ); Thu, 20 May 2010 00:55:56 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4K4ttww005992 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 May 2010 00:55:55 -0400 Received: from [10.11.9.24] (vpn-9-24.rdu.redhat.com [10.11.9.24]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4K4tpD2025377 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 May 2010 00:55:53 -0400 Message-ID: <4BF4C0D6.9030808@redhat.com> Date: Thu, 20 May 2010 01:55:50 -0300 From: Mauro Carvalho Chehab User-Agent: Thunderbird 2.0.0.22 (X11/20090609) MIME-Version: 1.0 To: Linux Media Mailing List , linux-input@vger.kernel.org CC: Dmitry Torokhov , Vladis Kletnieks Subject: [PATCH] input: fix error at the default input_get_keycode call X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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]); Thu, 20 May 2010 04:56:00 +0000 (UTC) diff --git a/drivers/input/input.c b/drivers/input/input.c index 3b63fad..7851d8e 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -838,6 +838,7 @@ int input_get_keycode(struct input_dev *dev, memset(&kt_entry, 0, sizeof(kt_entry)); kt_entry.len = 4; kt_entry.index = scancode; + kt_entry.scancode = &scancode; spin_lock_irqsave(&dev->event_lock, flags); retval = dev->getkeycodebig_from_index(dev, &kt_entry);