summaryrefslogtreecommitdiff
path: root/libparted/labels/aix.c
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2016-04-11 15:10:51 -0700
committerBrian C. Lane <bcl@redhat.com>2016-04-15 16:19:03 -0700
commitc58f816ffbc0bc4eacfb57d492cbe3b7497ede9f (patch)
tree19b595eb9cd5be8e37f45abf885716cc6a6e04a5 /libparted/labels/aix.c
parent3447264ba9fedf236da92b2199a2b4823b773cf5 (diff)
downloadparted-c58f816ffbc0bc4eacfb57d492cbe3b7497ede9f.tar.gz
libparted: Remove fdasd geometry code from alloc_metadata (#1244833)
commit db20944f changed how the trailing_metadata_end is calculated in dasd_alloc_metadata, removing the need for setting up the anchor struct. But dasd_alloc_metadata can be called in various contexts, and the arch_specific->fd may or may not be valid during these calls. This can result in unpredictable crashes when it uses a stale fd and tries to run the file image code in fdasd_get_geometry instead of the device code. The solution is to just drop the unneeded code, and to remember that arch_specific->fd should only be used when ped_device_open has first been called. Resolves: rhbz#1244833
Diffstat (limited to 'libparted/labels/aix.c')
0 files changed, 0 insertions, 0 deletions