From mboxrd@z Thu Jan 1 00:00:00 1970 From: Trilok Soni Subject: Re: [PATCH v2] input: mouse: add qci touchpad driver Date: Fri, 13 Aug 2010 15:04:37 +0530 Message-ID: <4C6511AD.4060800@codeaurora.org> References: <1281631760-15589-1-git-send-email-nleeder@codeaurora.org> <0680EC522D0CC943BC586913CF3768C003B3909F9C@dbde02.ent.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:43950 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934145Ab0HMJeo (ORCPT ); Fri, 13 Aug 2010 05:34:44 -0400 In-Reply-To: <0680EC522D0CC943BC586913CF3768C003B3909F9C@dbde02.ent.ti.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: "Datta, Shubhrajyoti" Cc: Neil Leeder , Dmitry Torokhov , "linux-input@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Horace Fu , Mandeep Singh Baines Hi Shubhrajyoti, >> + >> +gpio_request_fail: >> + input_unregister_device(context->qcitp_dev); >> + context->qcitp_dev = NULL; >> + >> +register_fail: >> + input_free_device(context->qcitp_dev); > You may like to revisit the use of free after unregister. > That looks OK, because qcitp_dev is set to NULL before this call. ---Trilok Soni -- Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.