Matthew Auld
137f6bac13
drm/i915: fix aliasing_ppgtt leak
commit 3871f42a57 upstream.
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")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-07 08:32:42 +02:00
..
2016-09-07 08:32:42 +02:00
2015-10-20 12:01:34 +02:00
2016-03-09 15:34:51 -08:00
2016-07-27 09:47:35 -07:00
2015-08-10 13:37:04 +02:00
2015-11-05 11:07:13 +10:00
2015-08-10 13:37:27 +02:00
2015-12-20 01:39:10 +09:00
2015-10-07 16:13:52 +02:00
2016-06-07 18:14:36 -07:00
2015-10-15 14:17:13 +10:00
2016-09-07 08:32:42 +02:00
2016-06-07 18:14:37 -07:00
2015-10-06 12:57:47 +02:00
2016-07-27 09:47:32 -07:00
2015-10-22 15:46:36 -04:00
2016-08-20 18:09:23 +02:00
2015-12-14 10:00:22 +02:00
2015-10-28 10:30:17 +09:00
2016-05-04 14:48:43 -07:00
2015-10-06 12:57:47 +02:00
2016-08-20 18:09:23 +02:00
2015-10-21 18:52:38 +03:00
2015-12-02 10:22:21 +08:00
2015-10-07 16:13:52 +02:00
2015-10-16 11:27:46 +10:00
2015-11-03 13:04:56 +01:00
2015-11-10 09:33:06 -08:00
2015-10-07 16:13:52 +02:00
2016-07-27 09:47:35 -07:00
2016-04-20 15:41:55 +09:00
2015-11-17 12:27:03 -08:00
2015-10-19 11:00:44 +02:00
2015-10-16 11:27:49 +10:00
2015-12-01 10:33:35 +10:00
2016-07-27 09:47:35 -07:00
2015-09-30 10:44:48 +02:00
2015-11-19 17:11:13 +02:00
2016-07-27 09:47:35 -07:00
2015-05-05 09:45:57 +02:00
2015-05-21 13:56:51 +02:00
2015-09-30 10:44:48 +02:00
2016-08-20 18:09:23 +02:00
2015-07-02 17:00:48 +02:00
2015-07-27 16:23:28 +02:00
2015-01-05 13:55:30 +01:00
2016-07-27 09:47:35 -07:00
2016-04-20 15:41:55 +09:00
2016-07-27 09:47:34 -07:00
2015-12-04 12:28:14 +10:00
2015-09-08 13:45:52 +02:00
2016-08-20 18:09:23 +02:00
2015-08-06 14:13:00 +02:00
2016-06-07 18:14:36 -07:00
2015-05-13 11:28:22 +02:00
2015-12-04 12:28:14 +10:00
2015-11-10 09:33:06 -08:00
2015-11-10 09:33:06 -08:00
2015-03-13 17:37:35 +01:00
2015-09-09 15:05:17 +02:00
2015-09-30 10:44:48 +02:00
2015-10-16 15:50:54 +02:00
2016-03-03 15:07:23 -08:00
2015-07-02 17:00:48 +02:00
2015-11-06 17:50:42 -08:00
2015-09-30 10:44:48 +02:00
2015-01-28 08:45:37 +01:00
2015-09-08 13:45:47 +02:00
2016-07-27 09:47:35 -07:00
2015-09-08 13:45:53 +02:00
2015-10-20 12:01:29 +02:00
2015-09-30 10:06:06 +02:00
2015-09-08 13:45:54 +02:00
2015-09-30 10:06:06 +02:00
2015-06-19 17:50:05 +02:00
2015-12-15 11:00:10 +10:00
2015-10-05 15:32:51 +02:00
2015-10-16 10:25:28 +10:00
2015-04-07 12:29:23 -04:00
2015-09-30 10:44:48 +02:00
2015-10-19 11:00:44 +02:00
2015-10-21 10:33:12 +01:00
2015-10-22 10:31:17 +10:00