Anton Prins e58a66d84b 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>
2012-12-10 15:31:36 +02:00
..
2012-11-22 12:07:03 +02:00
2012-03-27 00:53:20 +01:00
2012-03-27 00:53:20 +01:00
2012-03-27 00:53:20 +01:00
2012-11-22 12:07:03 +02:00
2012-03-27 00:53:20 +01:00
2012-11-22 11:06:28 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 11:06:28 +02:00
2008-06-04 17:50:17 +01:00
2012-11-22 12:07:03 +02:00
2012-03-30 17:31:56 -07:00
2012-03-27 00:53:20 +01:00
2012-11-22 12:07:03 +02:00
2012-03-27 00:53:20 +01:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00