OSDN Git Service

libparted: do not call _device_get_partition_range() twice
authorPetr Uzel <petr.uzel@suse.cz>
Wed, 28 Sep 2011 08:45:08 +0000 (10:45 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 1 Oct 2011 07:38:14 +0000 (09:38 +0200)
commitcf35ba6ba80027bc35805782db64513d1a2b77a3
treeb457d4d79a56593fa76619403fa7f01ebd091f6e
parentce59e872861a48ad3ec8353af3301bcc9ad1ef90
libparted: do not call _device_get_partition_range() twice

PED_MIN can evaluate its arguments twice.

* libparted/arch/linux.c (_disk_sync_part_table): Call
_device_get_partition_range() outside PED_MIN.
libparted/arch/linux.c