diff options
author | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-05-16 16:50:28 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-05-18 12:04:51 +0200 |
commit | d7c045cbe101f5a545ddaa2a6853ca815a3df132 (patch) | |
tree | e163139ccdd47486bc477dbce43a3f7b6b7e865f /lib/igt_kmod.h | |
parent | c82411f503f4c12916cd1276e6ae9e0adebe1962 (diff) |
lib/igt_kmod: don't leak who from module unload routines
Add code to free allocated strings at the module unload routines
from igt_kmod.
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'lib/igt_kmod.h')
-rw-r--r-- | lib/igt_kmod.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_kmod.h b/lib/igt_kmod.h index 15f0be31e..f98dd29fb 100644 --- a/lib/igt_kmod.h +++ b/lib/igt_kmod.h @@ -36,11 +36,11 @@ bool igt_kmod_has_param(const char *mod_name, const char *param); int igt_kmod_load(const char *mod_name, const char *opts); int igt_kmod_unload(const char *mod_name, unsigned int flags); -int igt_audio_driver_unload(const char **whom); +int igt_audio_driver_unload(char **whom); int igt_i915_driver_load(const char *opts); int igt_i915_driver_unload(void); -int __igt_i915_driver_unload(const char **whom); +int __igt_i915_driver_unload(char **whom); int igt_amdgpu_driver_load(const char *opts); int igt_amdgpu_driver_unload(void); |