OSDN Git Service

drm/i915: add a helper to free the members of i915_params
authorJani Nikula <jani.nikula@intel.com>
Thu, 27 Dec 2018 14:33:38 +0000 (16:33 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 31 Dec 2018 13:27:00 +0000 (15:27 +0200)
commit16cabb12f2cc40304dfce8c8eba169f044b64f02
tree271d06cc89ec46f5d0a1f2d5d24eee712dad1c7d
parent4081cef923e0ac0bb4dbc24da838c91f2ea8d737
drm/i915: add a helper to free the members of i915_params

Abstract the one user in anticipation of more. Set the dangling pointers
to NULL while at it.

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8637d1e5049dc003718772f19d664aeaf9540856.1545920737.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_params.c
drivers/gpu/drm/i915/i915_params.h