perf: Fix perf_event_init_context()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 5 May 2014 17:12:20 +0000 (19:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 7 May 2014 09:33:15 +0000 (11:33 +0200)
commitffb4ef21ac4308c2e738e6f83b6741bbc9b4fa3b
tree8fac0ed6e911159faa232d149a5d3113a2415ae2
parent46ce0fe97a6be7532ce6126bb26ce89fed81528c
perf: Fix perf_event_init_context()

perf_pin_task_context() can return NULL but perf_event_init_context()
assumes it will not, correct this.

Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Link: http://lkml.kernel.org/r/20140505171428.GU26782@laptop.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c