Subject: + tools-testing-selftests-fix-uninitialized-variable.patch added to -mm tree To: felipensp@xxxxxxxxx,fweisbec@xxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Fri, 11 Oct 2013 11:38:15 -0700 The patch titled Subject: tools/testing/selftests: fix uninitialized variable has been added to the -mm tree. Its filename is tools-testing-selftests-fix-uninitialized-variable.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/tools-testing-selftests-fix-uninitialized-variable.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/tools-testing-selftests-fix-uninitialized-variable.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Felipe Pena <felipensp@xxxxxxxxx> Subject: tools/testing/selftests: fix uninitialized variable The err variable is intended to receive the timer_create() return before checking it Signed-off-by: Felipe Pena <felipensp@xxxxxxxxx> Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/timers/posix_timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN tools/testing/selftests/timers/posix_timers.c~tools-testing-selftests-fix-uninitialized-variable tools/testing/selftests/timers/posix_timers.c --- a/tools/testing/selftests/timers/posix_timers.c~tools-testing-selftests-fix-uninitialized-variable +++ a/tools/testing/selftests/timers/posix_timers.c @@ -151,7 +151,7 @@ static int check_timer_create(int which) fflush(stdout); done = 0; - timer_create(which, NULL, &id); + err = timer_create(which, NULL, &id); if (err < 0) { perror("Can't create timer\n"); return -1; _ Patches currently in -mm which might be from felipensp@xxxxxxxxx are tools-testing-selftests-fix-uninitialized-variable.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html