]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci: Fix memory leak in xhci_endpoint_reset()
authorZheng Xiaowei <zhengxiaowei@ruijie.com.cn>
Fri, 20 Jul 2018 15:05:11 +0000 (18:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jul 2018 15:17:21 +0000 (17:17 +0200)
commit91b128288fd4f235a2f89230605eccd20025a5a2
tree1d3f59acb0c39dbea8fb935e5e69ab5d338feaef
parent334186a7db3a1bb083dbd75e24a223496f90ac13
usb: xhci: Fix memory leak in xhci_endpoint_reset()

If td_list is not empty the cfg_cmd will not be freed,
call xhci_free_command to free it.

Signed-off-by: Zheng Xiaowei <zhengxiaowei@ruijie.com.cn>
Cc: <stable@vger.kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c