Kevin Hao
4f7d834cec
irqdomain: Fix a memory leak in irq_domain_push_irq()
commit 0f394daef8 upstream.
Fix a memory leak reported by kmemleak:
unreferenced object 0xffff000bc6f50e80 (size 128):
comm "kworker/23:2", pid 201, jiffies 4294894947 (age 942.132s)
hex dump (first 32 bytes):
00 00 00 00 41 00 00 00 86 c0 03 00 00 00 00 00 ....A...........
00 a0 b2 c6 0b 00 ff ff 40 51 fd 10 00 80 ff ff ........@Q......
backtrace:
[<00000000e62d2240>] kmem_cache_alloc_trace+0x1a4/0x320
[<00000000279143c9>] irq_domain_push_irq+0x7c/0x188
[<00000000d9f4c154>] thunderx_gpio_probe+0x3ac/0x438
[<00000000fd09ec22>] pci_device_probe+0xe4/0x198
[<00000000d43eca75>] really_probe+0xdc/0x320
[<00000000d3ebab09>] driver_probe_device+0x5c/0xf0
[<000000005b3ecaa0>] __device_attach_driver+0x88/0xc0
[<000000004e5915f5>] bus_for_each_drv+0x7c/0xc8
[<0000000079d4db41>] __device_attach+0xe4/0x140
[<00000000883bbda9>] device_initial_probe+0x18/0x20
[<000000003be59ef6>] bus_probe_device+0x98/0xa0
[<0000000039b03d3f>] deferred_probe_work_func+0x74/0xa8
[<00000000870934ce>] process_one_work+0x1c8/0x470
[<00000000e3cce570>] worker_thread+0x1f8/0x428
[<000000005d64975e>] kthread+0xfc/0x128
[<00000000f0eaa764>] ret_from_fork+0x10/0x18
Fixes: 495c38d300 ("irqdomain: Add irq_domain_{push,pop}_irq() functions")
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200120043547.22271-1-haokexin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-11 04:33:57 -08:00
..
2020-01-27 14:51:20 +01:00
2020-02-05 14:43:39 +00:00
2018-06-15 07:15:28 +09:00
2020-01-27 14:50:48 +01:00
2020-01-04 19:12:43 +01:00
2020-01-27 14:50:57 +01:00
2018-06-08 18:56:02 +09:00
2020-02-11 04:33:57 -08:00
2019-10-07 18:57:10 +02:00
2020-01-12 12:17:05 +01:00
2020-01-09 10:18:58 +01:00
2020-02-11 04:33:51 -08:00
2020-02-11 04:33:55 -08:00
2020-02-01 09:37:10 +00:00
2020-01-23 08:21:37 +01:00
2020-02-11 04:33:55 -08:00
2019-05-31 06:46:05 -07:00
2018-02-06 18:32:44 -08:00
2018-05-18 14:58:22 +02:00
2019-12-13 08:51:11 +01:00
2019-12-13 08:51:02 +01:00
2018-07-17 14:45:08 -04:00
2018-02-23 11:22:22 -05:00
2019-05-31 06:46:17 -07:00
2019-12-01 09:17:17 +01:00
2018-11-13 11:08:47 -08:00
2020-01-23 08:21:29 +01:00
2018-06-24 14:39:47 +02:00
2019-11-24 08:20:18 +01:00
2018-08-22 10:52:47 -07:00
2020-01-09 10:19:00 +01:00
2018-04-27 14:34:51 +02:00
2018-05-16 07:23:35 +02:00
2019-10-11 18:21:23 +02:00
2018-05-16 07:23:35 +02:00
2020-01-09 10:19:02 +01:00
2018-02-21 16:54:06 +01:00
2018-06-21 12:33:19 +02:00
2020-01-27 14:50:58 +01:00
2018-08-06 12:35:20 +02:00
2019-12-01 09:17:38 +01:00
2017-12-14 16:00:49 -08:00
2019-04-20 09:16:02 +02:00
2018-05-15 23:08:33 -07:00
2019-05-31 06:46:19 -07:00
2019-06-04 08:02:34 +02:00
2019-09-21 07:17:02 +02:00
2018-08-02 08:06:54 +09:00
2019-02-12 19:47:20 +01:00
2019-11-24 08:20:29 +01:00
2018-06-12 16:19:22 -07:00
2018-07-16 12:31:57 -07:00
2019-12-05 09:20:26 +01:00
2018-08-13 11:25:07 -07:00
2019-12-01 09:17:38 +01:00
2020-01-29 16:43:27 +01:00
2018-07-02 11:36:17 +02:00
2018-07-02 11:36:17 +02:00
2020-02-11 04:33:50 -08:00
2019-07-26 09:14:25 +02:00
2019-12-01 09:17:10 +01:00
2018-04-11 10:28:37 -07:00
2019-07-26 09:14:01 +02:00
2019-01-13 09:51:06 +01:00
2020-01-23 08:21:29 +01:00
2018-08-06 12:35:20 +02:00
2019-03-13 14:02:35 -07:00
2019-09-16 08:22:20 +02:00
2018-07-10 22:18:52 +02:00
2020-01-23 08:21:29 +01:00
2020-01-27 14:51:05 +01:00
2019-02-12 19:47:25 +01:00
2018-07-03 09:20:44 +02:00
2018-08-03 15:52:10 +02:00
2018-08-13 11:25:07 -07:00
2018-06-10 10:17:09 -07:00
2019-06-15 11:54:01 +02:00
2018-04-16 11:26:49 +02:00
2020-01-04 19:13:17 +01:00
2017-12-17 13:57:15 +01:00
2020-01-09 10:18:59 +01:00
2018-06-21 12:33:05 +02:00
2018-06-25 11:30:10 -07:00
2018-10-17 15:35:29 -04:00
2018-04-05 21:36:27 -07:00
2018-04-02 20:15:59 +02:00
2018-04-02 20:15:30 +02:00
2018-06-07 16:56:28 -04:00
2018-11-13 11:09:00 -08:00
2018-08-22 10:52:47 -07:00
2018-08-11 02:05:53 -05:00
2018-04-11 10:28:35 -07:00
2018-08-30 12:56:40 +02:00
2019-04-03 06:26:29 +02:00
2018-05-18 08:47:13 -07:00
2019-12-17 20:35:50 +01:00