]> Pileus Git - ~andy/linux/commit
ftrace: convert unsigned index to signed
authorSteven Rostedt <srostedt@redhat.com>
Tue, 6 Jan 2009 17:43:01 +0000 (12:43 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 7 Jan 2009 09:43:52 +0000 (10:43 +0100)
commit431aa3fbf5bbe3be79809c7e603c2ed2ac64b015
treea61e6a869388ab58b02bf2f0ac6931c5932fe675
parent99793e3dbe39a50d871eedc361659a894601e2bf
ftrace: convert unsigned index to signed

Impact: fix to unsigned compared to less than zero

Roel Kluin pointed out that there is a compare of an unsigned number
to less than zero. A previous clean up had the unsigned index set
to -1 for certain cases, but never converted it to signed.

Frederic Weisbecker noticed that another index is used to compare
the above index to and it also needs to be converted to signed.

[
  Converted ftrace_page->index to int from unsigned long as
  Andrew Morton pointed out that there's no need for it to
  stay a long.
]

Reported-by: Roel Kluin <roel.kluin@gmail.com>
Reported-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c