Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751542AbcDFPy6 (ORCPT ); Wed, 6 Apr 2016 11:54:58 -0400 Received: from mga14.intel.com ([192.55.52.115]:14907 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320AbcDFPy5 (ORCPT ); Wed, 6 Apr 2016 11:54:57 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,447,1455004800"; d="scan'208";a="953005421" From: changbin.du@intel.com To: balbi@kernel.org Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, "Du, Changbin" Subject: [PATCH v2 2/3] usb: dwc3: free dwc->regset on dwc3_debugfs_exit Date: Wed, 6 Apr 2016 23:44:05 +0800 Message-Id: <1459957446-6854-3-git-send-email-changbin.du@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459957446-6854-1-git-send-email-changbin.du@intel.com> References: <1459957446-6854-1-git-send-email-changbin.du@intel.com> In-Reply-To: <20160406092509.GA29930@kroah.com> References: <20160406092509.GA29930@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 519 Lines: 21 From: "Du, Changbin" Signed-off-by: Du, Changbin --- drivers/usb/dwc3/debugfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/dwc3/debugfs.c b/drivers/usb/dwc3/debugfs.c index 071b286..2d4f397 100644 --- a/drivers/usb/dwc3/debugfs.c +++ b/drivers/usb/dwc3/debugfs.c @@ -657,4 +657,7 @@ void dwc3_debugfs_exit(struct dwc3 *dwc) { debugfs_remove_recursive(dwc->root); dwc->root = NULL; + + kfree(dwc->regset); + dwc->regset = NULL; } -- 2.5.0