diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-06-06 00:01:46 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-06-06 04:53:40 -0400 |
commit | 23aaa3c18e33fe048671b419781b5e44175efafe (patch) | |
tree | 03a3129a3bf0b04061d2904789a87c668de755c6 /drivers/gpio | |
parent | 748ec3a20eb44fce19af3cef04f8db8a8e7aead3 (diff) | |
download | linux-23aaa3c18e33fe048671b419781b5e44175efafe.tar.gz linux-23aaa3c18e33fe048671b419781b5e44175efafe.tar.bz2 linux-23aaa3c18e33fe048671b419781b5e44175efafe.zip |
tracing: Fix leak of ring buffer data when new instances creation fails
Yoshihiro Yunomae reported that the ring buffer data for a trace
instance does not get properly cleaned up when it fails. He proposed
a patch that manually cleaned the data up and addad a bunch of labels.
The labels are not needed because all trace array is allocated with
a kzalloc which initializes it to 0 and all kfree()s can take a NULL
pointer and will ignore it.
Adding a new helper function free_trace_buffers() that can also take
null buffers to free the buffers that were allocated by
allocate_trace_buffers().
Link: http://lkml.kernel.org/r/20140605223522.32311.31664.stgit@yunodevel
Reported-by: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions