From patchwork Mon Oct 18 13:45:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 261951 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 o9IDt0CH010773 for ; Mon, 18 Oct 2010 13:55:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755801Ab0JRNy7 (ORCPT ); Mon, 18 Oct 2010 09:54:59 -0400 Received: from mail.bugwerft.de ([212.112.241.193]:50584 "EHLO mail.bugwerft.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755803Ab0JRNy7 (ORCPT ); Mon, 18 Oct 2010 09:54:59 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 18 Oct 2010 13:55:08 +0000 (UTC) X-Greylist: delayed 554 seconds by postgrey-1.27 at vger.kernel.org; Mon, 18 Oct 2010 09:54:58 EDT Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.bugwerft.de (Postfix) with ESMTP id 26D8B8F8413; Mon, 18 Oct 2010 15:45:50 +0200 (CEST) Received: from mail.bugwerft.de ([127.0.0.1]) by localhost (rambrand.caiaq.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dtPWKzUXmDWt; Mon, 18 Oct 2010 15:45:50 +0200 (CEST) Received: from jup.xaos.intra (port-92-206-115-104.dynamic.qsc.de [92.206.115.104]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bugwerft.de (Postfix) with ESMTPSA id BD81E8F8412; Mon, 18 Oct 2010 15:45:49 +0200 (CEST) From: Daniel Mack To: linux-kernel@vger.kernel.org Cc: s.neumann@raumfeld.com, linux-input@vger.kernel.org, Daniel Mack , Dmitry Torokhov Subject: [PATCH 2/2] input: fix EVIOCSABS regression Date: Mon, 18 Oct 2010 15:45:24 +0200 Message-Id: <1287409524-3032-2-git-send-email-zonque@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1287409524-3032-1-git-send-email-zonque@gmail.com> References: <1287409524-3032-1-git-send-email-zonque@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index afb64cf..9ddafc3 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c @@ -683,7 +683,7 @@ static long evdev_do_ioctl(struct file *file, unsigned int cmd, } } - if (_IOC_DIR(cmd) == _IOC_READ) { + if (_IOC_DIR(cmd) == _IOC_WRITE) { if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCSABS(0))) {