public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] sched_stress: fix matrix inversion routine
@ 2013-03-22 10:58 Jan Stancek
  2013-03-22 14:39 ` Jan Stancek
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Stancek @ 2013-03-22 10:58 UTC (permalink / raw)
  To: ltp-list

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 <jstancek@redhat.com>
---
 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;
-- 
1.7.1


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] sched_stress: fix matrix inversion routine
  2013-03-22 10:58 [LTP] [PATCH] sched_stress: fix matrix inversion routine Jan Stancek
@ 2013-03-22 14:39 ` Jan Stancek
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Stancek @ 2013-03-22 14:39 UTC (permalink / raw)
  To: ltp-list



----- Original Message -----
> From: "Jan Stancek" <jstancek@redhat.com>
> To: ltp-list@lists.sourceforge.net
> Sent: Friday, 22 March, 2013 11:58:12 AM
> Subject: [LTP] [PATCH] 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.
> 

Just to close the loop, this has been committed.

Regards,
Jan

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-22 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-22 10:58 [LTP] [PATCH] sched_stress: fix matrix inversion routine Jan Stancek
2013-03-22 14:39 ` Jan Stancek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox