Commit c21caf3d authored by Dave Jones's avatar Dave Jones

[AGPGART] Handle failure during initialisation more gracefully.

parent 47efb401
...@@ -257,6 +257,7 @@ int agp_register_driver (struct agp_driver *drv) ...@@ -257,6 +257,7 @@ int agp_register_driver (struct agp_driver *drv)
err_out: err_out:
agp_bridge.type = NOT_SUPPORTED; agp_bridge.type = NOT_SUPPORTED;
module_put(drv->owner); module_put(drv->owner);
drv->dev = NULL;
return ret_val; return ret_val;
} }
......
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