x86,kgdb: Always initialize the hw breakpoint attribute
commitdc13af9b05a8f30456431f706f907dbc10405814
authorJason Wessel <jason.wessel@windriver.com>
Tue, 30 Mar 2010 19:05:07 +0000 (30 14:05 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:47:47 +0000 (26 07:47 -0700)
treeb12a777f11dc417d5a51f7e9185e2a7ca95103dc
parent0a5693e82c90479a012c903915fa970c7bf22593
x86,kgdb: Always initialize the hw breakpoint attribute

commit ab310b5edb8b601bcb02491ed6f7676da4fd1757 upstream.

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>
LKML-Reference: <1269975907-27602-1-git-send-email-jason.wessel@windriver.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/kgdb.c