forked from pool/open-iscsi
27 lines
780 B
Plaintext
27 lines
780 B
Plaintext
commit 8cf4c3b44ca99422b41e2ff0eecd473c1f1cd4e3
|
|
Author: Hannes Reinecke <hare@suse.de>
|
|
Date: Thu Nov 27 09:34:02 2008 +0100
|
|
|
|
iscsiadm -m fw crashed on PowerPC
|
|
|
|
When no OpenFW boot parameters are found we should not try
|
|
to search iBFT on PowerPC. That doesn't work, of course.
|
|
|
|
References: 449116
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
diff --git a/utils/fwparam_ibft/fw_entry.c b/utils/fwparam_ibft/fw_entry.c
|
|
index fbfa3dd..072c185 100644
|
|
--- a/utils/fwparam_ibft/fw_entry.c
|
|
+++ b/utils/fwparam_ibft/fw_entry.c
|
|
@@ -28,7 +28,7 @@ int fw_get_entry(struct boot_context *context, const char *filepath)
|
|
int ret;
|
|
|
|
ret = fwparam_ppc(context, filepath);
|
|
- if (ret)
|
|
+ if (ret < 0)
|
|
ret = fwparam_ibft(context, filepath);
|
|
return ret;
|
|
}
|