alistair23-linux/fs/pstore
Douglas Anderson f6525b96dd pstore: Fix leaked pstore_record in pstore_get_backend_records()
When the "if (record->size <= 0)" test is true in
pstore_get_backend_records() it's pretty clear that nobody holds a
reference to the allocated pstore_record, yet we don't free it.

Let's free it.

Fixes: 2a2b0acf76 ("pstore: Allocate records on heap instead of stack")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
2017-05-31 10:10:09 -07:00
..
ftrace.c pstore: Remove write_buf() callback 2017-03-07 14:01:02 -08:00
inode.c pstore: Solve lockdep warning by moving inode locks 2017-04-27 20:35:34 -07:00
internal.h pstore: Solve lockdep warning by moving inode locks 2017-04-27 20:35:34 -07:00
Kconfig docs: fix locations of several documents that got moved 2016-10-24 08:12:35 -02:00
Makefile pstore: add pstore unregister 2015-10-22 08:59:18 -07:00
platform.c pstore: Fix leaked pstore_record in pstore_get_backend_records() 2017-05-31 10:10:09 -07:00
pmsg.c pstore: Remove unused vmalloc.h in pmsg 2017-04-27 14:48:59 -07:00
ram.c Annotation of module parameters that specify device settings 2017-05-10 19:13:03 -07:00
ram_core.c pstore: Use dynamic spinlock initializer 2017-03-07 08:21:38 -08:00