Re: general protection fault on ttm_init()

From: Dave Airlie
Date: Fri Jul 06 2012 - 13:09:43 EST


On Fri, Jul 6, 2012 at 5:49 PM, Dave Airlie <airlied@xxxxxxxxx> wrote:
> On Fri, Jul 6, 2012 at 3:48 PM, Fengguang Wu <fengguang.wu@xxxxxxxxx> wrote:
>> ... The missed kconfig.
>>
>> On Fri, Jul 06, 2012 at 10:46:22PM +0800, Fengguang Wu wrote:
>>> Hi Thomas,
>
> Wierd, I'm sorta tempted to just depend drm on CONFIG_PROC_FS, but it
> looks like the error path is failing to dtrt.

I've attached a patch that should fix it, let me know if it works.

though since the drm fails on proc not being there I wonder should we
just enforce proc being there if you pick drm.

Dave.

Attachment: 0001-drm-fail-gracefully-when-proc-isn-t-setup.patch
Description: Binary data