NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/51045: DRM driver panic if RAM/swap runs out



The following reply was made to PR kern/51045; it has been noted by GNATS.

From: coypu%SDF.ORG@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/51045: DRM driver panic if RAM/swap runs out
Date: Tue, 5 Apr 2016 13:30:26 +0000

 I have some suspicion this is related to the following code:
 
 sys/uvm/uvm_device.c:217-219
 
                 /* Note: both calls may allocate memory and sleep. */
                 udv = kmem_alloc(sizeof(*udv), KM_SLEEP);
                 uvm_obj_init(&udv->u_obj, &uvm_deviceops, true, 1);
 
 I believe kmem_alloc should be tested but is not.
 
 Sorry if this is unrelated.
 


Home | Main Index | Thread Index | Old Index