summaryrefslogtreecommitdiffstats
path: root/init/initramfs.c
diff options
context:
space:
mode:
authorZhengjun Xing <zhengjun.xing@linux.intel.com>2018-02-12 14:24:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-15 18:36:19 +0100
commit11cd764dc9a030991880ad4d51db93918afa5822 (patch)
tree4cd048120c8c2eeb55959046551a4ce868b23d9c /init/initramfs.c
parent8c5a93ebf7ac56d47f879b3c7c2f8c83b40c2cdb (diff)
downloadlinux-11cd764dc9a030991880ad4d51db93918afa5822.tar.gz
linux-11cd764dc9a030991880ad4d51db93918afa5822.tar.bz2
linux-11cd764dc9a030991880ad4d51db93918afa5822.zip
xhci: fix xhci debugfs errors in xhci_stop
In function xhci_stop, xhci_debugfs_exit called before xhci_mem_cleanup. xhci_debugfs_exit removed the xhci debugfs root nodes, xhci_mem_cleanup called function xhci_free_virt_devices_depth_first which in turn called function xhci_debugfs_remove_slot. Function xhci_debugfs_remove_slot removed the nodes for devices, the nodes folders are sub folder of xhci debugfs. It is unreasonable to remove xhci debugfs root folder before xhci debugfs sub folder. Function xhci_mem_cleanup should be called before function xhci_debugfs_exit. Fixes: 02b6fdc2a153 ("usb: xhci: Add debugfs interface for xHCI driver") Cc: <stable@vger.kernel.org> # v4.15 Signed-off-by: Zhengjun Xing <zhengjun.xing@linux.intel.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init/initramfs.c')
0 files changed, 0 insertions, 0 deletions