Skip to content

Commit 6dcf6a4

Browse files
committed
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fix from Ingo Molnar: "Fix an initialization bug in the hw-breakpoints, which triggered on the ARM platform" * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/hw_breakpoint: Fix arch_hw_breakpoint use-before-initialization
2 parents 95779fe + 310aa0a commit 6dcf6a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/events/hw_breakpoint.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static int hw_breakpoint_parse(struct perf_event *bp,
413413

414414
int register_perf_hw_breakpoint(struct perf_event *bp)
415415
{
416-
struct arch_hw_breakpoint hw;
416+
struct arch_hw_breakpoint hw = { };
417417
int err;
418418

419419
err = reserve_bp_slot(bp);
@@ -461,7 +461,7 @@ int
461461
modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr,
462462
bool check)
463463
{
464-
struct arch_hw_breakpoint hw;
464+
struct arch_hw_breakpoint hw = { };
465465
int err;
466466

467467
err = hw_breakpoint_parse(bp, attr, &hw);

0 commit comments

Comments
 (0)