FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Games

 
 
LinkBack Thread Tools
 
Old 12-02-2009, 03:27 PM
Martin Sivak
 
Default Fix the case, when the device was removed before partition selection

---
loader/driverdisk.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/loader/driverdisk.c b/loader/driverdisk.c
index f718684..074428e 100644
--- a/loader/driverdisk.c
+++ b/loader/driverdisk.c
@@ -404,6 +404,12 @@ int loadDriverFromMedia(int class, struct loaderData_s *loaderData,
char ** part_list = getPartitionsList(device);
int nump = 0, num = 0;

+ /* Do not crash if the device disappeared */
+ if(!part_list){
+ stage = DEV_DEVICE;
+ break;
+ }
+
if (part != NULL) free(part);

if ((nump = lenPartitionsList(part_list)) == 0) {
--
1.6.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:27 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org