[LTP] [PATCH v2] sysctl01: fix fails on live-patched kernels

Petr Vorel pvorel@suse.cz
Fri Mar 8 17:24:21 CET 2019


Hi Jan,

> ...
> > +	klp_tag = strstr(buf.version, "/kGraft-");
> > +	if (!klp_tag)
> > +		klp_tag = strstr(buf.version, "/lp-");
> > +	if (klp_tag) {
> > +		right_brace = strchr(klp_tag, ')');
> > +		if (right_brace)
> > +			memmove(klp_tag, right_brace, sizeof(char) * (strlen(right_brace)+1));
> sizeof(char) == 1 by definition :)

Merged, with this tiny fix + extended commit message.
Thanks for your patch!

Kind regards,
Petr


More information about the ltp mailing list