lib/tst_kvercmp.c: Update tst_parse_kver() condition
PATCH 1/1 lib/tst_kvercmp.c: Update tst_parse_kver() condition
tst_parse_kver() fails with kernel names like current mainline kernel "5.15-rc7". Updated condition to fit this template.
Signed-off-by Egor Petrov <[email protected]>
--- lib/tst_kvercmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/tst_kvercmp.c +1 -1
@@ -65,7 +65,7 @@ int tst_parse_kver(const char *str_kver, int *v1, int *v2, int *v3)/* * Check for a short version e.g '2.4' */ -if (*str ==' ' || *str =='\0' ) +if (*str ==' ' || *str =='\0' || *str =='-' )return 0 ;if (*(str++) !='.' )
Signature · 5 lines
2.32.0.windows.2 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Egor,
Quoted 3 lines
tst_parse_kver()fails with kernel names like current mainline kernel "5.15-rc7". Updated condition to fit this template.
Reviewed-by Petr Vorel <[email protected]>
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Pushed, thanks.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp