Zero ttm_agp objects on creation.
This commit is contained in:
parent
1a58402320
commit
76be0e7906
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ttm_agp_backend.c,v 1.2 2014/08/14 16:47:52 riastradh Exp $ */
|
||||
/* $NetBSD: ttm_agp_backend.c,v 1.3 2014/08/14 16:50:22 riastradh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2014 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ttm_agp_backend.c,v 1.2 2014/08/14 16:47:52 riastradh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ttm_agp_backend.c,v 1.3 2014/08/14 16:50:22 riastradh Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/kmem.h>
|
||||
|
@ -57,7 +57,7 @@ ttm_agp_tt_create(struct ttm_bo_device *bdev, struct agp_bridge_data *bridge,
|
|||
{
|
||||
struct ttm_agp *ttm_agp;
|
||||
|
||||
ttm_agp = kmem_alloc(sizeof(*ttm_agp), KM_SLEEP);
|
||||
ttm_agp = kmem_zalloc(sizeof(*ttm_agp), KM_SLEEP);
|
||||
ttm_agp->agp = &bridge->abd_sc;
|
||||
ttm_agp->ttm_dma.ttm.func = &ttm_agp_backend_func;
|
||||
|
||||
|
|
Loading…
Reference in New Issue