summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src/ide_part_table.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-19 14:59:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-19 14:59:35 +0000
commiteb961961837bd288fb57799c189326fc944047b5 (patch)
treee857eea22b553b5288811467a2089ab87ad368ad /cpukit/libblock/src/ide_part_table.c
parent2008-12-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-eb961961837bd288fb57799c189326fc944047b5.tar.bz2
2008-12-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/ide_part_table.c: Fixed NULL pointer access. * libmisc/monitor/mon-command.c, libmisc/monitor/mon-editor.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h, libmisc/shell/cmds.c: The list of registered monitor commands is now private and only accessible via a lookup and iterate function.
Diffstat (limited to 'cpukit/libblock/src/ide_part_table.c')
-rw-r--r--cpukit/libblock/src/ide_part_table.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libblock/src/ide_part_table.c b/cpukit/libblock/src/ide_part_table.c
index cc8763a584..31edc31a41 100644
--- a/cpukit/libblock/src/ide_part_table.c
+++ b/cpukit/libblock/src/ide_part_table.c
@@ -376,10 +376,10 @@ read_mbr(rtems_disk_desc_t *disk_desc)
part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;
part_num++)
{
- if (is_extended(disk_desc->partitions[part_num]->sys_type))
+ part_desc = disk_desc->partitions[part_num];
+ if (part_desc != NULL && is_extended(part_desc->sys_type))
{
- read_extended_partition(disk_desc->partitions[part_num]->start,
- disk_desc->partitions[part_num]);
+ read_extended_partition(part_desc->start, part_desc);
}
}