From: Dan Carpenter Date: Wed, 11 Jul 2012 06:35:08 +0000 (+0300) Subject: tracing: Check for allocation failure in __tracing_open() X-Git-Tag: v3.6-rc1~167^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93574fcc5b50cc7b8834698acb2ce947e5b6a5dc;p=pandora-kernel.git 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 Cc: Ingo Molnar Signed-off-by: Dan Carpenter Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed