Commit dd329e9e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix another CONFIG_MCA=y oops

If you have an MCA kernel on non-MCA hardware and load an MCA driver,
mca_find_unused_adapter() ends up dereferencing NULL. 

Teach it about the absence of MCA buses.
parent 4c80b95c
......@@ -123,7 +123,7 @@ int mca_find_unused_adapter(int id, int start)
{
struct mca_find_adapter_info info = { 0 };
if(id == 0xffff)
if (!MCA_bus || id == 0xffff)
return MCA_NOTFOUND;
info.slot = start;
......
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