[LTP] [PATCH v7 1/4] lib: add module is loaded check

Cyril Hrubis chrubis@suse.cz
Fri Nov 6 13:42:16 CET 2026


Hi!
> +		if (i == mod_len) {

Shouldn't we check that next character is a whitespace here?

I guess that module name that is prefix of unrelated module is going to
be rare but it's not impossible.

> +			fclose(file);
> +			return true;
> +		}
> +	}
> +
> +	fclose(file);
> +	return false;
> +}

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list