Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1372626

[PATCH v2 2/3] usb: dwc3: free dwc->regset on dwc3_debugfs_exit

From changbin.du@intel.com
Newsgroups linux.kernel
Subject [PATCH v2 2/3] usb: dwc3: free dwc->regset on dwc3_debugfs_exit
Date 2016-04-06 18:00 +0200
Message-ID <rkY25-68Y-1@gated-at.bofh.it> (permalink)
References <rkY26-68Y-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: "Du, Changbin" <changbin.du@intel.com>

Signed-off-by: Du, Changbin <changbin.du@intel.com>
---
 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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v2 2/3] usb: dwc3: free dwc->regset on dwc3_debugfs_exit changbin.du@intel.com - 2016-04-06 18:00 +0200
  Re: [PATCH v2 2/3] usb: dwc3: free dwc->regset on dwc3_debugfs_exit Greg KH <gregkh@linuxfoundation.org> - 2016-04-06 23:10 +0200
  Re: [PATCH v2 2/3] usb: dwc3: free dwc->regset on dwc3_debugfs_exit Felipe Balbi <balbi@kernel.org> - 2016-04-07 07:10 +0200

csiph-web