[rtems commit] libblock: Discard extended partitions
Sebastian Huber
sebh at rtems.org
Tue Mar 13 11:31:32 UTC 2012
Module: rtems
Branch: master
Commit: a3170f70b68efebcc7db3d6b66059f945c50c5f6
Changeset: http://git.rtems.org/rtems/commit/?id=a3170f70b68efebcc7db3d6b66059f945c50c5f6
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Feb 28 15:34:42 2012 +0100
libblock: Discard extended partitions
Discard the extended partitions after evaluation. This prevents logical
disks that contain other logical disks.
---
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 5a71d79..38bc520 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;
}
}
More information about the vc
mailing list