[Intel-gfx] [PATCH i-g-t] lib/igt_kmod: Compare module names with strcmp

Chris Wilson chris at chris-wilson.co.uk
Fri Feb 3 10:24:09 UTC 2017


On Fri, Feb 03, 2017 at 12:09:46PM +0200, Ander Conselvan de Oliveira wrote:
> The function igt_kmod_is_loaded() returns the wrong value when there is
> a module loaded whose name is a prefix of the name supplied as a
> paremter. For instance, if the "snd" module is loaded,
> igt_kmod_is_load("snd_hda_intel") will return true even if that module
> isn't loaded, thus causing drv_module_reload to failure in that
> scenario.

Ah, that would explain some of the mystery.

> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list