From: Cyril H. <su...@li...> - 2013-03-22 14:21:31
|
The branch, master, has been updated via 8567638ab4af6643389714479977545ba780b762 (commit) from f56e615d4b0b931a104c3daa0f4ed62a2c6a3e2c (commit) - Log ----------------------------------------------------------------- commit 8567638ab4af6643389714479977545ba780b762 Author: Jan Stancek <jst...@re...> Date: Fri Mar 22 11:41:41 2013 +0100 sched_stress: fix matrix inversion routine Fix code to not go out of bounds of "matrix_1" array and to do what it's supposed to - calculate inversion matrix. Signed-off-by: Jan Stancek <jst...@re...> ----------------------------------------------------------------------- Summary of changes: testcases/kernel/sched/sched_stress/sched_tc5.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/sched/sched_stress/sched_tc5.c b/testcases/kernel/sched/sched_stress/sched_tc5.c index d242c9e..db5ce96 100644 --- a/testcases/kernel/sched/sched_stress/sched_tc5.c +++ b/testcases/kernel/sched/sched_stress/sched_tc5.c @@ -210,7 +210,7 @@ void invert_matrix() * Form an identity matrix in the random matrix */ for (i = 0; i < MATRIX_SIZE; i++) { - t1 = matrix_1[i][j]; + t1 = matrix_1[i][i]; for (j = 0; j < MATRIX_SIZE; j++) { matrix_1[i][j] /= t1; matrix_2[i][j] /= t1; hooks/post-receive -- ltp |