Commit 20fe1d1c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] DRM modprobe retval fix

If you try to load a DRM module when agpgart is not present, modprobe says
"Cannot allocate memory", which is rather misleading.

Make it return -EINVAL instead.
parent 500ea96b
......@@ -638,7 +638,7 @@ static int __init drm_init( void )
DRM_ERROR( "Cannot initialize the agpgart module.\n" );
DRM(stub_unregister)(DRM(minor)[i]);
DRM(takedown)( dev );
return -ENOMEM;
return -EINVAL;
}
#endif
#if __REALLY_HAVE_MTRR
......
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