diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-10-28 15:56:57 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-10-28 15:56:57 +0000 |
commit | ac0a569249d597ce6abdf7e949a0baf13c0c9499 (patch) | |
tree | 0caf0a438247d146c72749a88a6b1c3b94c7fe60 /loader2 | |
parent | 145c79dd45970641ce51771d6143491a3be0fedd (diff) | |
download | anaconda-ac0a569249d597ce6abdf7e949a0baf13c0c9499.tar.gz anaconda-ac0a569249d597ce6abdf7e949a0baf13c0c9499.tar.xz anaconda-ac0a569249d597ce6abdf7e949a0baf13c0c9499.zip |
don't segfault with no ide cdrom drives (#108137)
Diffstat (limited to 'loader2')
-rw-r--r-- | loader2/hardware.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/loader2/hardware.c b/loader2/hardware.c index c108f6570..cc11d678a 100644 --- a/loader2/hardware.c +++ b/loader2/hardware.c @@ -329,6 +329,9 @@ void ideSetup(moduleList modLoaded, moduleDeps modDeps, if (FL_ENABLECDDMA(flags)) return; devices = probeDevices(CLASS_CDROM, BUS_IDE, PROBE_ALL); + if (!devices) + return; + for (i = 0; devices[i]; i++) { if ((devices[i]->detached != 0) || (devices[i]->device == NULL)) continue; |