Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753190Ab0LFOlO (ORCPT ); Mon, 6 Dec 2010 09:41:14 -0500 Received: from 93.100.122.208.pool.sknt.ru ([93.100.122.208]:41914 "EHLO localhost.localdomain" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750709Ab0LFOlM (ORCPT ); Mon, 6 Dec 2010 09:41:12 -0500 Date: Mon, 6 Dec 2010 17:45:19 +0300 From: Valentine Barshak To: Jiri Kosina Cc: linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] USB: HID: Fix race between disconnect and hiddev_ioctl Message-ID: <20101206144519.GA8438@mvista.com> Reply-To: Valentine Barshak MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 512 Lines: 11 If a USB HID device is disconneceted, the hiddev_ioctl could try to access invalid hiddev->hid pointer. The following two patches attempt to fix race condition between disconnect and hiddev_ioctl and make hiddev_ioctl always return -ENODEV on a disconnected device. -- 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/