mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Change the *evil* allocation of memory from kmem_map to the kernel_map.
This will mess things up especially recently.
This commit is contained in:
parent
655929bfba
commit
c51bd6784e
1 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: kern_lkm.c,v 1.29 1996/03/28 14:31:40 scrappy Exp $
|
||||
* $Id: kern_lkm.c,v 1.30 1996/05/01 02:42:54 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -149,7 +149,7 @@ lkmunreserve()
|
|||
* Actually unreserve the memory
|
||||
*/
|
||||
if (curp && curp->area) {
|
||||
kmem_free(kmem_map, curp->area, curp->size);/**/
|
||||
kmem_free(kernel_map, curp->area, curp->size);/**/
|
||||
curp->area = 0;
|
||||
if (curp->private.lkm_any != NULL)
|
||||
curp->private.lkm_any = NULL;
|
||||
|
|
@ -234,7 +234,7 @@ lkmcioctl(dev, cmd, data, flag, p)
|
|||
*/
|
||||
curp->size = resrvp->size;
|
||||
|
||||
curp->area = kmem_alloc(kmem_map, curp->size);/**/
|
||||
curp->area = kmem_alloc(kernel_map, curp->size);/**/
|
||||
|
||||
curp->offset = 0; /* load offset */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue