Matthew Auld
3871f42a57
drm/i915: fix aliasing_ppgtt leak
In i915_ggtt_cleanup_hw we need to remember to free aliasing_ppgtt. This
fixes the following kmemleak message:
unreferenced object 0xffff880213cca000 (size 8192):
comm "modprobe", pid 1298, jiffies 4294745402 (age 703.930s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff817c808e>] kmemleak_alloc+0x4e/0xb0
[<ffffffff8121f9c2>] kmem_cache_alloc_trace+0x142/0x1d0
[<ffffffffa06d11ef>] i915_gem_init_ggtt+0x10f/0x210 [i915]
[<ffffffffa06d71bb>] i915_gem_init+0x5b/0xd0 [i915]
[<ffffffffa069749a>] i915_driver_load+0x97a/0x1460 [i915]
[<ffffffffa06a26ef>] i915_pci_probe+0x4f/0x70 [i915]
[<ffffffff81423015>] local_pci_probe+0x45/0xa0
[<ffffffff81424463>] pci_device_probe+0x103/0x150
[<ffffffff81515e6c>] driver_probe_device+0x22c/0x440
[<ffffffff81516151>] __driver_attach+0xd1/0xf0
[<ffffffff8151379c>] bus_for_each_dev+0x6c/0xc0
[<ffffffff8151555e>] driver_attach+0x1e/0x20
[<ffffffff81514fa3>] bus_add_driver+0x1c3/0x280
[<ffffffff81516aa0>] driver_register+0x60/0xe0
[<ffffffff8142297c>] __pci_register_driver+0x4c/0x50
[<ffffffffa013605b>] 0xffffffffa013605b
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: b18b6bde30 ("drm/i915/bdw: Free PPGTT struct")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1470420280-21417-1-git-send-email-matthew.auld@intel.com
(cherry picked from commit cb7f27601c)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-08-11 01:05:48 +03:00
..
2016-08-01 21:44:08 -04:00
2016-07-19 15:33:50 -04:00
2016-07-28 12:59:56 +02:00
2016-08-01 21:44:08 -04:00
2016-07-19 09:27:29 +02:00
2016-07-19 09:27:29 +02:00
2016-07-19 09:27:29 +02:00
2016-07-30 05:26:07 +10:00
2016-07-19 09:27:29 +02:00
2016-08-01 21:44:08 -04:00
2016-08-07 16:35:08 -07:00
2016-07-27 10:33:08 +10:00
2016-07-28 10:04:03 +02:00
2016-07-12 14:17:03 +02:00
2016-07-13 14:24:35 +05:30
2016-08-11 01:05:48 +03:00
2016-07-30 05:45:30 +10:00
2016-08-04 08:50:07 -04:00
2016-07-22 11:23:39 -04:00
2016-08-04 08:50:07 -04:00
2016-08-04 08:50:07 -04:00
2016-08-01 21:44:08 -04:00
2016-07-11 14:30:43 +02:00
2016-07-22 11:23:39 -04:00
2016-07-29 14:36:55 -04:00
2016-08-01 21:44:08 -04:00
2016-08-04 08:50:07 -04:00
2016-07-18 09:11:37 +02:00
2016-06-21 21:43:24 +02:00
2016-08-03 08:40:24 +10:00
2016-07-27 10:33:08 +10:00
2016-07-19 09:27:29 +02:00
2016-07-18 09:11:38 +02:00
2016-08-01 21:44:08 -04:00
2016-07-18 09:11:40 +02:00
2016-07-19 09:27:29 +02:00
2016-07-19 15:01:52 +02:00
2016-06-21 21:43:24 +02:00
2016-07-19 15:44:10 -04:00
2016-07-30 05:26:07 +10:00
2016-04-27 08:41:34 +02:00
2016-07-29 09:59:30 +02:00
2016-07-29 09:59:30 +02:00
2016-06-21 22:10:55 +02:00
2016-07-29 09:59:30 +02:00
2016-06-03 20:58:24 +02:00
2016-06-21 21:43:24 +02:00
2016-07-12 15:57:13 +02:00
2016-07-02 15:56:01 +10:00
2016-07-29 09:59:30 +02:00
2016-07-19 21:51:17 +02:00
2016-06-16 10:16:11 +02:00
2016-07-12 14:10:57 +02:00
2016-05-23 11:10:46 +03:00
2016-08-03 07:06:28 +10:00
2016-07-19 10:31:53 +02:00
2016-07-12 13:01:49 +02:00
2016-05-30 09:59:28 +02:00
2016-05-23 11:35:31 +10:00
2016-07-02 16:21:35 +10:00
2016-06-22 10:07:28 +02:00
2016-06-21 21:43:28 +02:00
2016-06-09 11:58:50 +02:00
2016-06-01 15:00:28 +10:00
2016-08-01 21:44:08 -04:00
2016-06-21 21:58:12 +02:00
2016-06-21 21:43:46 +02:00
2016-07-14 10:12:50 +02:00
2016-07-19 10:29:47 +02:00
2016-06-16 10:16:37 +02:00
2016-06-21 21:58:12 +02:00
2016-07-12 13:20:39 +02:00
2016-07-12 13:19:26 +02:00
2016-05-23 14:56:11 +02:00
2016-06-09 11:19:28 +10:00
2016-06-03 20:58:24 +02:00
2016-05-06 16:04:48 +02:00
2016-06-21 21:43:46 +02:00
2016-06-17 16:41:25 +02:00
2016-06-21 21:56:23 +02:00
2016-06-13 17:32:18 +02:00
2016-06-02 15:10:22 +02:00
2016-07-12 13:20:39 +02:00
2016-06-17 16:41:25 +02:00
2016-06-09 08:43:25 +02:00
2016-07-12 13:20:39 +02:00
2016-06-03 20:58:24 +02:00
2016-05-06 17:47:35 +02:00
2016-07-29 09:59:30 +02:00