mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* do_initcalls bug
@ 2000-11-24 15:48 Pavel Machek
  2000-11-24 18:53 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2000-11-24 15:48 UTC (permalink / raw)
  To: kernel list

Hi!

static void __init do_initcalls(void)
{
        initcall_t *call;

        call = &__initcall_start;
        do {
                early_printk("[%lx]\n", call);
                (*call)();
                call++;
        } while (call < &__initcall_end);
}

In case there are no initcalls to be called, it just simply
crashes. Ouch.

								Pavel
-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-24 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-24 15:48 do_initcalls bug Pavel Machek
2000-11-24 18:53 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®