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
Цей коміт міститься в:
@@ -79,6 +79,7 @@ extern struct i915_params i915_modparams __read_mostly;
|
||||
|
||||
void i915_params_dump(const struct i915_params *params, struct drm_printer *p);
|
||||
void i915_params_copy(struct i915_params *dest, const struct i915_params *src);
|
||||
void i915_params_free(struct i915_params *params);
|
||||
|
||||
#endif
|
||||
|
||||
|
Посилання в новій задачі
Заблокувати користувача