diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2021-07-21 18:23:54 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2021-08-03 14:13:53 +0300 |
commit | 1354d830cb8f9be966cc07fc61368af27ffb7c4a (patch) | |
tree | d3138d1de9c3586777403f0def3b2f7cf149442f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 9c9c6d0ab08acfe41c9f7efa72c4ad3f133a266b (diff) | |
download | linux-1354d830cb8f9be966cc07fc61368af27ffb7c4a.tar.xz |
drm/i915: Call i915_globals_exit() if pci_register_device() fails
In the unlikely event that pci_register_device() fails, we were tearing
down our PMU setup but not globals. This leaves a bunch of memory slabs
lying around.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Fixes: 32eb6bcfdda9 ("drm/i915: Make request allocation caches global")
[danvet: Fix conflicts against removal of the globals_flush
infrastructure.]
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210721152358.2893314-3-jason@jlekstrand.net
(cherry picked from commit db484889d1ff0645e07e360d3e3ad306c0515821)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
[Fixed small conflict while cherry picking]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions