diff options
author | 2012-01-30 18:20:13 +0100 | |
---|---|---|
committer | 2012-02-29 16:10:35 +0200 | |
commit | a29852be492d61001d86c6ebf5fff9b93d7b4be9 (patch) | |
tree | 0a15800a6aa30943131ead177d38bf5f7702b2f2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 3.3-rc5 (diff) | |
download | linux-dev-a29852be492d61001d86c6ebf5fff9b93d7b4be9.tar.xz linux-dev-a29852be492d61001d86c6ebf5fff9b93d7b4be9.zip |
UBI: fix error handling in ubi_scan()
Two bad things can happen in ubi_scan():
1. If kmem_cache_create() fails we jump to out_si and call
ubi_scan_destroy_si() which calls kmem_cache_destroy().
But si->scan_leb_slab is NULL.
2. If process_eb() fails we jump to out_vidh, call
kmem_cache_destroy() and ubi_scan_destroy_si() which calls
again kmem_cache_destroy().
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions