Lu Baolu
9821786d7c
usb: xhci: Free the right ring in xhci_add_endpoint()
...
In the xhci_add_endpoint(), a new ring was allocated and saved at
xhci_virt_ep->new_ring. Hence, when error happens, we need to free
the allocated ring before returning error.
Current code frees xhci_virt_ep->ring instead of the new_ring. This
patch fixes this.
Cc: <stable@vger.kernel.org>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-18 17:10:40 +02:00
..
2017-09-14 11:59:30 +02:00
2017-09-01 09:22:50 +02:00
2017-09-06 22:41:21 -07:00
2017-09-16 10:58:48 -07:00
2017-09-12 20:03:53 -07:00
2017-09-10 20:40:00 -07:00
2017-09-14 11:59:30 +02:00
2017-09-13 11:04:14 -07:00
2017-09-15 20:43:33 -07:00
2017-09-14 11:59:30 +02:00
2017-09-15 20:43:33 -07:00
2017-09-07 14:03:05 -07:00
2017-09-14 13:43:16 -07:00
2017-09-07 14:03:05 -07:00
2017-09-14 11:59:30 +02:00
2017-09-07 13:51:13 -07:00
2017-09-15 17:52:52 -07:00
2017-09-07 12:53:14 -07:00
2017-09-07 09:25:15 -07:00
2017-09-14 11:59:30 +02:00
2017-09-14 17:34:43 +02:00
2017-09-07 11:59:42 -07:00
2017-09-05 12:19:08 -07:00
2017-09-07 13:51:13 -07:00
2017-09-13 18:53:15 -07:00
2017-09-16 11:24:26 -07:00
2017-09-09 15:03:24 -07:00
2017-09-15 20:43:33 -07:00
2017-09-07 20:03:54 -07:00
2017-09-14 11:59:30 +02:00
2017-09-01 16:42:54 +10:00
2017-09-07 13:23:37 -07:00
2017-09-05 11:08:17 -07:00
2017-09-14 13:43:16 -07:00
2017-09-14 18:13:32 -07:00
2017-09-10 20:40:00 -07:00
2017-09-14 11:59:30 +02:00
2017-09-13 18:53:16 -07:00
2017-09-01 15:31:01 +02:00
2017-09-16 12:08:10 -07:00
2017-09-16 11:28:59 -07:00
2017-09-14 13:43:16 -07:00
2017-09-11 12:29:40 -04:00
2017-09-12 13:30:06 -07:00
2017-09-05 11:08:17 -07:00
2017-09-15 01:33:51 -05:00
2017-09-15 20:43:33 -07:00
2017-09-12 15:58:45 +02:00
2017-09-14 11:59:30 +02:00
2017-09-14 11:59:30 +02:00
2017-09-09 14:44:39 -07:00
2017-09-08 18:26:51 -07:00
2017-09-11 13:04:32 -07:00
2017-09-07 13:51:13 -07:00
2017-09-09 14:34:38 -07:00
2017-09-15 20:43:33 -07:00
2017-09-04 10:52:30 -07:00
2017-09-13 10:56:00 -07:00
2017-09-12 06:01:59 -07:00
2017-09-13 10:47:14 -07:00
2017-09-15 20:43:33 -07:00
2017-09-05 12:45:03 -07:00
2017-09-14 18:54:01 -07:00
2017-09-14 18:13:32 -07:00
2017-09-08 11:20:04 +08:00
2017-09-05 12:45:03 -07:00
2017-09-14 11:59:30 +02:00
2017-09-18 17:10:40 +02:00
2017-09-18 11:28:23 +02:00
2017-09-08 18:26:49 -07:00
2017-09-14 13:33:33 -07:00
2017-09-07 21:11:05 -07:00
2017-09-09 14:44:39 -07:00
2017-09-15 20:43:33 -07:00
2017-09-13 18:53:16 -07:00