diff options
| author | Dan Carpenter <[email protected]> | 2012-07-11 06:35:08 +0000 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2012-07-11 23:56:26 +0000 |
| commit | 93574fcc5b50cc7b8834698acb2ce947e5b6a5dc (patch) | |
| tree | f40191d94dfc121737e1acb3463874f8dc702ba7 /fs/jbd2/commit.c | |
| parent | perf/x86: Fix intel_perfmon_event_mapformatting (diff) | |
| download | kernel-93574fcc5b50cc7b8834698acb2ce947e5b6a5dc.tar.gz kernel-93574fcc5b50cc7b8834698acb2ce947e5b6a5dc.zip | |
tracing: Check for allocation failure in __tracing_open()
Clean up and return -ENOMEM on if the kzalloc() fails.
This also prevents a potential crash, as the pointer that failed to
allocate would be later used.
Link: http://lkml.kernel.org/r/[email protected]
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
