]> git.baikalelectronics.ru Git - kernel.git/commit
hw-breakpoints: Zeroe the breakpoint attrs on initialization
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 7 Dec 2009 02:14:17 +0000 (03:14 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Mon, 7 Dec 2009 06:04:33 +0000 (07:04 +0100)
commit5857b87c82c6c0ecc3012b539536372fbe141b3a
tree34be7e06922a496386ad91500fb8e73e87c846a8
parent0830a8f51dc557346ce0d733b24064b8369d57b9
hw-breakpoints: Zeroe the breakpoint attrs on initialization

The perf attrs used to set up breakpoint parameters are often allocated
in the stack and not zeroed out before calling hw_breakpoint_init().
Handle it from this helper to avoid random attributes set by the stack.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Prasad <prasad@linux.vnet.ibm.com>
include/linux/hw_breakpoint.h