Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933926AbbGHJa4 (ORCPT ); Wed, 8 Jul 2015 05:30:56 -0400 Received: from mail.emea.novell.com ([130.57.118.101]:57604 "EHLO mail.emea.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932932AbbGHJax (ORCPT ); Wed, 8 Jul 2015 05:30:53 -0400 Date: Wed, 8 Jul 2015 11:30:38 +0200 (CEST) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: Brent Adam cc: benjamin.tissoires@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Brent Adam Subject: Re: [PATCH v2] USB: HID: Fix fields from pen report ID being interpreted for multitouch. In-Reply-To: <1434732815-5172-1-git-send-email-brentadam@smarttech.com> Message-ID: References: <1434732815-5172-1-git-send-email-brentadam@smarttech.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 817 Lines: 21 On Fri, 19 Jun 2015, Brent Adam wrote: > Fields like HID_DG_CONTACTCOUNT are outside of the physical collection, > but within the application collection and report ID. Make sure to catch > those fields that are not part of the mt_report_id and return 0 so they > can be processed with the pen. Otherwise, the wrong HID_DG_CONTACTCOUNT > will be applied to cc_index and result in dereferencing a null pointer in > mt_touch_report. > > Signed-off-by: Brent Adam I am applying this to for-4.2/upstream-fixes. Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/