From patchwork Thu Nov 18 13:34:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattia Dongili X-Patchwork-Id: 336141 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAIDYNYv032048 for ; Thu, 18 Nov 2010 13:34:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755556Ab0KRNeW (ORCPT ); Thu, 18 Nov 2010 08:34:22 -0500 Received: from static-220-247-10-204.b-man.svips.gol.ne.jp ([220.247.10.204]:60289 "EHLO smtp.kamineko.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753610Ab0KRNeV (ORCPT ); Thu, 18 Nov 2010 08:34:21 -0500 Received: from caligola.kamineko.org (caligola.kamineko.org [192.168.1.36]) by smtp.kamineko.org (Postfix) with ESMTPSA id 483B76D0AD; Thu, 18 Nov 2010 22:34:20 +0900 (JST) Received: by caligola.kamineko.org (Postfix, from userid 1000) id 2D72C15F2F; Thu, 18 Nov 2010 22:34:20 +0900 (JST) Date: Thu, 18 Nov 2010 22:34:20 +0900 From: Mattia Dongili To: Dmitry Torokhov Cc: Norbert Preining , Matthew Garrett , linux-kernel@vger.kernel.org, ACPI Devel Mailing List , Mauro Carvalho Chehab , linux-input@vger.kernel.org Subject: Re: regression since 2.6.36: backlight in sony-laptop not working Message-ID: <20101118133420.GA3177@kamineko.org> References: <20101110035833.GB3029@kamineko.org> <20101111235000.GA6651@gamma.logic.tuwien.ac.at> <20101112034423.GA7407@srcf.ucam.org> <20101112035027.GD26742@gamma.logic.tuwien.ac.at> <20101112035732.GB7574@srcf.ucam.org> <20101112042243.GE2852@kamineko.org> <20101117063006.GF29129@gamma.logic.tuwien.ac.at> <20101117063338.GG29129@gamma.logic.tuwien.ac.at> <20101117065252.GA7046@core.coreip.homeip.net> <20101118110445.GB4107@kamineko.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20101118110445.GB4107@kamineko.org> X-Message-Flag: Cranky? Try Free Software instead! X-Operating-System: Linux 2.6.37-rc2+ x86_64 X-Editor: Vim http://www.vim.org/ X-Disclaimer: Buh! User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 18 Nov 2010 13:34:23 +0000 (UTC) diff --git a/drivers/input/input.c b/drivers/input/input.c index 7f26ca6..5edc41a 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -753,7 +753,7 @@ static int input_default_setkeycode(struct input_dev *dev, if (index >= dev->keycodemax) return -EINVAL; - if (dev->keycodesize < sizeof(dev->keycode) && + if (dev->keycodesize < sizeof(ke->keycode) && (ke->keycode >> (dev->keycodesize * 8))) return -EINVAL;