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

2017-02-03 Thread Ander Conselvan De Oliveira
On Fri, 2017-02-03 at 10:24 +, Chris Wilson wrote: > 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 in

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

2017-02-03 Thread Chris Wilson
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_

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

2017-02-03 Thread Ander Conselvan de Oliveira
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_modul