From patchwork Tue Feb 15 14:41:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 559011 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 p1FEfBne013299 for ; Tue, 15 Feb 2011 14:41:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751198Ab1BOOlI (ORCPT ); Tue, 15 Feb 2011 09:41:08 -0500 Received: from 89-230.252-81.static-ip.oleane.fr ([81.252.230.89]:43741 "EHLO smtp.lii-enac.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752124Ab1BOOlI (ORCPT ); Tue, 15 Feb 2011 09:41:08 -0500 Received: from gloupti.lii-enac.fr (unknown [10.0.0.110]) by smtp.lii-enac.fr (DoorWays) with ESMTP id 6461995140; Tue, 15 Feb 2011 15:41:07 +0100 (CET) From: Benjamin Tissoires To: Dmitry Torokhov , Benjamin Tissoires , Jiri Kosina , Stephane Chatty , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] hidinput: kernel oops in out_cleanup in function hidinput_connect Date: Tue, 15 Feb 2011 15:41:10 +0100 Message-Id: <1297780870-4006-1-git-send-email-benjamin.tissoires@enac.fr> X-Mailer: git-send-email 1.7.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 15 Feb 2011 14:41:11 +0000 (UTC) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 7f552bf..f53911d 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -928,6 +928,7 @@ int hidinput_connect(struct hid_device *hid, unsigned int force) return 0; out_cleanup: + list_del(&hidinput->list); input_free_device(hidinput->input); kfree(hidinput); out_unwind: