* exported fb_find_logo references __initdata
@ 2007-06-19 20:19 Olaf Hering
2007-06-20 7:13 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2007-06-19 20:19 UTC (permalink / raw)
To: linux-kernel
fb_find_logo() refences a few structs marked as __initdata. The structs
itself have a member ->data which is marked as __initdata as well.
scripts/pnmtologo.c write_footer() and write_header() create those
structs.
What is the correct fix, and why does it work at all?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: exported fb_find_logo references __initdata
2007-06-19 20:19 exported fb_find_logo references __initdata Olaf Hering
@ 2007-06-20 7:13 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2007-06-20 7:13 UTC (permalink / raw)
To: Olaf Hering; +Cc: linux-kernel
On Tue, 19 Jun 2007, Olaf Hering wrote:
> fb_find_logo() refences a few structs marked as __initdata. The structs
> itself have a member ->data which is marked as __initdata as well.
> scripts/pnmtologo.c write_footer() and write_header() create those
> structs.
>
> What is the correct fix, and why does it work at all?
commit 70802c60379fb843c485dfd4cab9e8f527d8fe81
Author: Antonino A. Daplas <adaplas@gmail.com>
Date: Tue May 8 00:38:14 2007 -0700
fbdev: don't show logo if driver or fbcon are modular
It was always intended for the logo to be drawn only if both fbcon and the
driver that is mapped to it are both compiled statically. Currently, if fbc
is loaded prior to the driver, the logo is not shown. Reverse the order, an
the code may attempt to draw the logo which is __initdata. By accident, thi
bug is rarely seen because this method of loading the modules is not common
and secondly, a code in fb_prepare_logo() that checks the height of the logo
(now a random value) rarely succeeds.
Fix by drawing the logo only if both fbcon and the driver are statically
compiled.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-20 7:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 20:19 exported fb_find_logo references __initdata Olaf Hering
2007-06-20 7:13 ` Geert Uytterhoeven
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.