Commit 9a921a40 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] MCA: handle bus failure

From: "Randy.Dunlap" <rddunlap@osdl.org>
From: Eugene TEO <eugeneteo@eugeneteo.net>

Handle OOM in mca_init()
parent a71c4a26
......@@ -270,6 +270,8 @@ static int __init mca_init(void)
/* All MCA systems have at least a primary bus */
bus = mca_attach_bus(MCA_PRIMARY_BUS);
if (!bus)
goto out_nomem;
bus->default_dma_mask = 0xffffffffLL;
bus->f.mca_write_pos = mca_pc_write_pos;
bus->f.mca_read_pos = mca_pc_read_pos;
......
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