]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kdb: Fix off by one error in kdb_cpu()
authorJason Wessel <jason.wessel@windriver.com>
Thu, 8 Jan 2015 21:46:55 +0000 (15:46 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:57:36 +0000 (14:57 -0800)
commit244e7e539435fcf6a81a54068afb37c1fbd5d1cb
tree9738260b81a9ccb31badfbccb3a7ac97311652c1
parent8b29b33d2a13263adbca342ba957e882f2b79759
kdb: Fix off by one error in kdb_cpu()

commit df0036d117e6c9df36324e517728e33543065f9a upstream.

There was a follow on replacement patch against the prior
"kgdb: Timeout if secondary CPUs ignore the roundup".

See: https://lkml.org/lkml/2015/1/7/442

This patch is the delta vs the patch that was committed upstream:
  * Fix an off-by-one error in kdb_cpu().
  * Replace NR_CPUS with CONFIG_NR_CPUS to tell checkpatch that we
    really want a static limit.
  * Removed the "KGDB: " prefix from the pr_crit() in debug_core.c
    (kgdb-next contains a patch which introduced pr_fmt() to this file
    to the tag will now be applied automatically).

Cc: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/debug/debug_core.c
kernel/debug/kdb/kdb_main.c