diff options
author | 2014-08-20 10:19:38 +0100 | |
---|---|---|
committer | 2014-09-16 19:02:04 +0300 | |
commit | 3df770725339c41d1cd9be4da4ca0d968119d8ad (patch) | |
tree | 75ea40d96de8dce7450bbd306c22f6350c1e5edf /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | UBI: add missing kmem_cache_free() in process_pool_aeb error path (diff) | |
download | linux-dev-3df770725339c41d1cd9be4da4ca0d968119d8ad.tar.xz linux-dev-3df770725339c41d1cd9be4da4ca0d968119d8ad.zip |
UBI: block: fix dereference on uninitialized dev
commit 4df38926f337 ("UBI: block: Avoid disk size integer overflow")
introduced a dereference on dev (which is not initialized at that
point) when printing a warning message. Re-order disk_capacity check
after the dev is found.
Found by cppcheck:
[drivers/mtd/ubi/block.c:509]: (error) Uninitialized variable: dev
Artem: tweak the error message a bit
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions