Commit 7d255ace authored by Mikael Pettersson's avatar Mikael Pettersson Committed by Dave Jones

Fix AGP module oops

The stack trace shows that we should be in agp_find_max() as
called from agp_backend_initialize(). However, agp_find_max()
is __init and its code has already been removed at this point
(since agpgart and intel-agp are separate modules), causing
the kernel to execute random code and eventually oops.  

The patch below works around this by changing agpgart's __init
code & data to normal code & data. Tested, works for me.
parent 47d59590
......@@ -73,7 +73,7 @@ struct agp_max_table {
int agp;
};
static struct agp_max_table maxes_table[9] __initdata =
static struct agp_max_table maxes_table[9] =
{
{0, 0},
{32, 4},
......@@ -86,7 +86,7 @@ static struct agp_max_table maxes_table[9] __initdata =
{4096, 3932}
};
static int __init agp_find_max (void)
static int agp_find_max (void)
{
long memory, index, result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment