summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-07-11 06:35:08 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2012-07-11 23:56:26 (GMT)
commit93574fcc5b50cc7b8834698acb2ce947e5b6a5dc (patch)
treef40191d94dfc121737e1acb3463874f8dc702ba7 /arch
parentc3b7cdf180090d2686239a75bb0ae408108ed749 (diff)
downloadlinux-fsl-qoriq-93574fcc5b50cc7b8834698acb2ce947e5b6a5dc.tar.xz
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/20120711063507.GF11812@elgon.mountain Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions