x86,kgdb: Always initialize the hw breakpoint attribute
authorJason Wessel <jason.wessel@windriver.com>
Tue, 30 Mar 2010 19:05:07 +0000 (14:05 -0500)
committerFrederic Weisbecker <fweisbec@gmail.com>
Thu, 1 Apr 2010 06:26:32 +0000 (08:26 +0200)
commitab310b5edb8b601bcb02491ed6f7676da4fd1757
tree1e3bcadd39e4d3aadfb73d42ecca7be191dbdba0
parente49a5bd38159dfb1928fd25b173bc9de4bbadb21
x86,kgdb: Always initialize the hw breakpoint attribute

It is required to call hw_breakpoint_init() on an attr before using it
in any other calls.  This fixes the problem where kgdb will sometimes
fail to initialize on x86_64.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: 2.6.33 <stable@kernel.org>
LKML-Reference: <1269975907-27602-1-git-send-email-jason.wessel@windriver.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
arch/x86/kernel/kgdb.c