diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-28 15:34:42 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-13 12:24:17 +0100 |
commit | a3170f70b68efebcc7db3d6b66059f945c50c5f6 (patch) | |
tree | 490fbef5faaac9a69403084445a7bd424840538a /cpukit/libblock | |
parent | libblock: rtems_ide_part_table_initialize() API (diff) | |
download | rtems-a3170f70b68efebcc7db3d6b66059f945c50c5f6.tar.bz2 |
libblock: Discard extended partitions
Discard the extended partitions after evaluation. This prevents logical
disks that contain other logical disks.
Diffstat (limited to 'cpukit/libblock')
-rw-r--r-- | cpukit/libblock/src/ide_part_table.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libblock/src/ide_part_table.c b/cpukit/libblock/src/ide_part_table.c index 5a71d79236..38bc520deb 100644 --- a/cpukit/libblock/src/ide_part_table.c +++ b/cpukit/libblock/src/ide_part_table.c @@ -389,6 +389,8 @@ read_mbr(int fd, rtems_disk_desc_t *disk_desc) if (part_desc != NULL && is_extended(part_desc->sys_type)) { read_extended_partition(fd, part_desc->start, part_desc); + free(part_desc); + disk_desc->partitions[part_num] = NULL; } } |