for (try=0; try<2; try++) {
- for (fmt = formats ; fmt ; fmt = fmt->next) {
+ for (fmt = get_binfmt_list() ; fmt ; fmt = fmt->next) {
int (*fn)(struct linux_binprm *, struct pt_regs *) = fmt->load_binary;
if (!fn)
continue;
If it really _is_ necessary, get_binfmt_list() should not be declared inside
the #ifdef CONFIG_MODULES.
Kai