Kevin Hao
0f394daef8
irqdomain: Fix a memory leak in irq_domain_push_irq()
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
2020-01-20 19:10:05 +00:00
..
2019-12-22 09:54:33 -08:00
2019-11-25 19:23:46 -08:00
2018-10-24 20:55:56 -04:00
2019-10-28 12:08:29 +00:00
2019-12-04 19:44:13 -08:00
2019-12-17 13:32:46 +01:00
2019-09-15 21:37:13 +02:00
2020-01-20 19:10:05 +00:00
2019-11-27 11:42:01 -08:00
2019-12-11 00:27:43 +01:00
2019-12-04 10:48:09 -08:00
2019-12-03 09:29:50 -08:00
2019-10-30 08:47:13 -07:00
2019-12-21 10:52:10 -08:00
2019-12-03 12:20:25 -08:00
2019-12-21 16:08:59 -05:00
2019-04-29 16:48:03 +02:00
2019-04-04 21:04:13 -04:00
2019-06-05 17:37:17 +02:00
2019-05-30 11:26:37 -07:00
2019-04-26 13:51:03 -04:00
2019-11-10 11:56:55 -05:00
2019-10-25 11:48:14 -04:00
2019-07-08 18:55:42 -07:00
2019-07-08 18:55:42 -07:00
2019-11-23 09:56:02 -08:00
2019-06-05 17:37:17 +02:00
2018-10-31 08:54:14 -07:00
2019-01-25 11:22:43 -08:00
2019-11-15 14:38:30 +01:00
2019-07-30 18:34:15 +02:00
2019-10-29 10:01:12 +01:00
2019-06-05 17:36:37 +02:00
2019-11-26 16:02:40 -08:00
2019-06-19 17:09:06 +02:00
2019-05-21 10:50:45 +02:00
2019-07-25 08:36:29 -07:00
2019-05-21 11:52:39 +02:00
2019-09-25 17:51:39 -07:00
2019-11-30 14:12:13 -08:00
2019-10-17 16:44:36 +02:00
2019-06-03 15:49:06 +02:00
2019-12-03 12:20:25 -08:00
2019-10-06 09:11:37 -06:00
2019-11-20 09:40:38 +01:00
2019-11-11 20:10:01 +09:00
2019-05-21 10:50:45 +02:00
2019-07-12 11:05:40 -07:00
2019-11-15 10:48:37 +01:00
2019-08-29 15:10:10 +01:00
2019-08-27 16:19:56 +01:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-11-12 11:35:32 +01:00
2019-12-04 19:44:14 -08:00
2019-09-25 17:51:40 -07:00
2019-09-06 23:58:44 +02:00
2019-11-01 21:42:58 +01:00
2019-08-19 21:54:15 -07:00
2019-05-24 20:16:01 +02:00
2019-09-20 11:19:48 -07:00
2019-05-30 11:26:39 -07:00
2019-10-16 09:20:58 -07:00
2019-06-05 17:37:17 +02:00
2019-12-02 17:35:04 -08:00
2019-08-05 18:39:56 -04:00
2019-08-05 18:39:56 -04:00
2019-05-24 17:27:11 +02:00
2019-12-11 12:22:38 -08:00
2019-12-04 19:44:12 -08:00
2019-06-05 17:37:17 +02:00
2019-09-13 21:15:41 +10:00
2019-11-25 09:15:42 +01:00
2019-08-19 21:54:16 -07:00
2019-11-15 23:49:22 +01:00
2019-11-15 23:49:22 +01:00
2019-12-04 19:44:12 -08:00
2019-07-16 19:23:24 -07:00
2019-05-21 10:50:45 +02:00
2019-03-12 13:27:20 -07:00
2019-09-24 15:54:09 -07:00
2019-05-27 09:36:28 -05:00
2019-10-10 14:45:51 -07:00
2019-10-11 08:39:57 -07:00
2019-07-20 11:27:16 +02:00
2019-05-21 10:50:45 +02:00
2019-07-08 11:01:13 -07:00
2018-12-05 19:31:44 -08:00
2019-11-11 10:30:59 +01:00
2019-10-31 09:33:19 +01:00
2019-11-15 14:38:30 +01:00
2019-12-04 19:44:12 -08:00
2019-11-26 13:03:56 -06:00
2019-09-30 17:35:01 -06:00
2019-12-01 12:59:07 -08:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:52:39 +02:00
2019-08-01 14:30:22 -07:00
2019-07-18 11:51:00 -07:00
2019-05-30 11:26:37 -07:00
2019-07-18 17:08:07 -07:00
2019-05-21 10:50:45 +02:00
2019-06-23 14:26:26 +02:00
2019-07-08 19:36:47 -07:00
2019-05-21 10:50:45 +02:00
2019-07-08 19:36:47 -07:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:17 +02:00
2019-04-19 09:46:05 -07:00
2019-08-01 20:51:20 +02:00
2019-04-16 16:55:15 +02:00
2019-12-06 09:59:30 +01:00