Skip to content
Commit e6bdf819 authored by Changbin Du's avatar Changbin Du Committed by Felipe Balbi
Browse files

usb: dwc3: fix memory leak of dwc->regset



dwc->regset is allocated on dwc3_debugfs_init, and should
be released on init failure or dwc3_debugfs_exit. Btw,
The line "dwc->root = NULL" is unnecessary, so remove it.

Signed-off-by: default avatarDu, Changbin <changbin.du@intel.com>

[ felipe.balbi@linux.intel.com : add another err label for the new
	error condition ]

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 5c4ad318
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment