-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 12 Nov 2009, 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) {
Please use consistent whitespace. You're introducing tabs on all lines here
except "stage = DEV_DEVICE;" line and there's no need for that.
- --
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkr9tSAACgkQ5hsjjIy1VknRWgCdHAhEmnCcK+7jPLDU/a9uf6Pk
g4EAoJAtx7FzfdcCaam0Nn5qydv7s7YC
=TJ+0
-----END PGP SIGNATURE-----
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list