- added patches: * revert-libparted-remove-now-worse-than-useless-_kern.patch * revert-linux-remove-DASD-restriction-on-_disk_sync_p.patch - reserve first 2 tracks on DASD disks for metadata (bnc#862138) * add: libparted-dasd-do-not-use-first-tracks.patch - initialize memory for newly allocated partition (bnc#862138) * add: libparted-initialize-dasd-part-type.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=86
18 lines
523 B
Diff
18 lines
523 B
Diff
---
|
|
libparted/labels/dasd.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
Index: parted-3.1/libparted/labels/dasd.c
|
|
===================================================================
|
|
--- parted-3.1.orig/libparted/labels/dasd.c
|
|
+++ parted-3.1/libparted/labels/dasd.c
|
|
@@ -659,6 +659,8 @@ dasd_partition_new (const PedDisk* disk,
|
|
goto error;
|
|
|
|
part->disk_specific = ped_malloc (sizeof (DasdPartitionData));
|
|
+ if (part->disk_specific)
|
|
+ memset(part->disk_specific, 0, sizeof(DasdPartitionData));
|
|
return part;
|
|
|
|
error:
|