]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: Avoid polluting the i915_oa_config with error pointers
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 Oct 2019 09:52:11 +0000 (10:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 Oct 2019 12:17:19 +0000 (13:17 +0100)
commit32e4317524375b80d87c091eb87ffff81d9e1414
treee619e2a735eba801a784270124fc441918d6cbd7
parent7a0c0adf2ed3fc94f1d2d3c512b3c4b711bd4ed9
drm/i915/perf: Avoid polluting the i915_oa_config with error pointers

Use a local variable to track the allocation errors to avoid polluting
the struct and keep the free simple.

Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191013095211.2922-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_perf.c