Shu Wang
d6f5f071f1
xhci: fix memleak in xhci_run()
Found this issue by kmemleak.
xhci_run() did not check return val and free command for
xhci_queue_vendor_command()
unreferenced object 0xffff88011c0be500 (size 64):
comm "kworker/0:1", pid 58, jiffies 4294670908 (age 50.420s)
hex dump (first 32 bytes):
backtrace:
[<ffffffff8176166a>] kmemleak_alloc+0x4a/0xa0
[<ffffffff8121801a>] kmem_cache_alloc_trace+0xca/0x1d0
[<ffffffff81576bf4>] xhci_alloc_command+0x44/0x130
[<ffffffff8156f1cc>] xhci_run+0x4cc/0x630
[<ffffffff8153b84b>] usb_add_hcd+0x3bb/0x950
[<ffffffff8154eac8>] usb_hcd_pci_probe+0x188/0x500
[<ffffffff815851ac>] xhci_pci_probe+0x2c/0x220
[<ffffffff813d2ca5>] local_pci_probe+0x45/0xa0
[<ffffffff810a54e4>] work_for_cpu_fn+0x14/0x20
[<ffffffff810a8409>] process_one_work+0x149/0x360
[<ffffffff810a8d08>] worker_thread+0x1d8/0x3c0
[<ffffffff810ae7d9>] kthread+0x109/0x140
[<ffffffff8176d585>] ret_from_fork+0x25/0x30
[<ffffffffffffffff>] 0xffffffffffffffff
Cc: <stable@vger.kernel.org>
Signed-off-by: Shu Wang <shuwang@redhat.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-20 14:40:36 +02:00
..
2016-08-15 16:25:58 +02:00
2016-09-27 12:20:17 +02:00
2016-03-03 20:37:41 -08:00
2017-03-17 13:16:56 +09:00
2017-06-13 10:48:24 +02:00
2017-03-23 08:20:21 +01:00
2017-03-16 18:03:31 +09:00
2016-12-05 15:13:58 +01:00
2017-03-23 08:20:21 +01:00
2016-06-07 22:15:25 -07:00
2016-04-28 12:35:36 -07:00
2017-03-17 13:32:59 +09:00
2016-10-24 14:36:25 +02:00
2017-05-17 11:52:44 +02:00
2016-11-03 10:38:24 +02:00
2017-05-17 12:20:53 +02:00
2016-04-28 12:35:36 -07:00
2016-06-30 07:44:21 +01:00
2016-06-07 22:15:25 -07:00
2017-06-03 18:08:04 +09:00
2016-11-29 17:36:43 +01:00
2016-12-05 15:13:58 +01:00
2016-08-30 19:17:37 +02:00
2016-05-09 13:08:46 +02:00
2017-06-03 18:08:04 +09:00
2016-12-05 15:13:58 +01:00
2016-11-03 10:38:36 +02:00
2017-06-03 18:08:05 +09:00
2017-06-03 18:08:05 +09:00
2016-08-30 19:17:37 +02:00
2017-03-09 10:22:08 +01:00
2016-11-29 17:31:36 +01:00
2017-01-10 17:00:42 +01:00
2017-03-23 08:13:21 +01:00
2017-02-10 12:20:57 +01:00
2016-11-21 17:33:40 +01:00
2016-12-08 17:50:09 +01:00
2017-01-10 17:00:41 +01:00
2017-03-23 08:13:21 +01:00
2017-06-03 18:08:04 +09:00
2017-06-29 14:49:06 +02:00
2016-06-07 22:15:25 -07:00
2016-12-05 16:32:51 +01:00
2016-08-30 19:24:59 +02:00
2016-06-30 07:44:20 +01:00
2017-03-23 08:13:21 +01:00
2017-03-16 18:03:31 +09:00
2017-07-20 14:40:35 +02:00
2017-07-20 14:40:35 +02:00
2017-05-17 11:52:44 +02:00
2017-05-25 14:30:13 +02:00
2017-05-25 14:30:13 +02:00
2017-06-28 01:52:52 +02:00
2017-05-25 14:30:13 +02:00
2017-04-08 12:17:42 +02:00
2017-01-25 10:59:06 +01:00
2017-07-20 14:40:36 +02:00
2017-06-20 10:16:07 +08:00
2016-11-03 10:38:22 +02:00
2017-03-09 18:00:39 +01:00
2017-01-19 10:37:16 +01:00
2016-04-26 16:08:02 -07:00
2016-04-26 16:08:02 -07:00
2017-07-20 14:40:35 +02:00
2017-05-18 15:19:42 +02:00
2017-04-19 19:59:17 +02:00
2017-04-19 19:59:17 +02:00
2017-04-19 19:59:17 +02:00
2017-07-20 14:40:35 +02:00
2017-03-09 18:00:39 +01:00
2017-04-08 12:17:41 +02:00
2017-07-20 14:40:36 +02:00
2017-07-20 14:40:35 +02:00