diff options
author | 2012-11-27 16:38:16 +0100 | |
---|---|---|
committer | 2012-12-10 15:31:36 +0200 | |
commit | e58a66d84bceba314b03e37ec0764b9b1b9227d0 (patch) | |
tree | 03d076c652b3f2701f2f2e54181903201b847df0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtg: docg3: potential divide by zero in doc_write_oob() (diff) | |
download | linux-dev-e58a66d84bceba314b03e37ec0764b9b1b9227d0.tar.xz linux-dev-e58a66d84bceba314b03e37ec0764b9b1b9227d0.zip |
mtd: physmap_of: error checking to prevent a NULL pointer dereference
This patch solves a NULL pointer dereference, this may occur if the tuple
is not mappable (jumps to continue in the for-loop). Out of the loop
possible results are:
- info->list_size == 0 if no of the tuples is mappable
- info->list_size == 1
- info->list_size > 1
If no one of the supplied tuples is mappable (info->list_size == 0) and
info->cmtd will not be set. But it is used in mtd_device_parse_register, OOPS!
actually it should generate an error in this case!
Signed-off-by: Anton Prins <anton.prins@nl.bosch.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions