On 11/12/2009 12:23 PM, Martin Sivak wrote:
--- loader2/driverdisk.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/loader2/driverdisk.c b/loader2/driverdisk.c index 3a0a13c..0a53b93 100644 --- a/loader2/driverdisk.c +++ b/loader2/driverdisk.c @@ -288,6 +288,13 @@ int loadDriverFromMedia(int class, struct loaderData_s *loaderData, char ** part_list = getPartitionsList(device); int nump = 0, num = 0; + /* if somebody removed the drive, partition list is NULL */ + /* rhbz#521189 */ + if (!part_list){ + stage = DEV_DEVICE; + break; + } + if (part != NULL) free(part); if ((nump = lenPartitionsList(part_list)) == 0) {
ACK. _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list