Pull up following revision(s) (requested by riastradh in ticket #903):
sys/external/bsd/drm2/ttm/ttm_agp_backend.c: revision 1.4 kmem_free the container structure, not a substructure.
This commit is contained in:
parent
a36f0818cd
commit
58bf942f2a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ttm_agp_backend.c,v 1.1.4.1 2014/08/15 11:11:59 martin Exp $ */
|
||||
/* $NetBSD: ttm_agp_backend.c,v 1.1.4.2 2015/07/30 15:41:44 snj 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.1.4.1 2014/08/15 11:11:59 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ttm_agp_backend.c,v 1.1.4.2 2015/07/30 15:41:44 snj Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/kmem.h>
|
||||
|
@ -156,7 +156,7 @@ ttm_agp_destroy(struct ttm_tt *ttm)
|
|||
if (ttm_agp->bound)
|
||||
ttm_agp_unbind(ttm);
|
||||
ttm_tt_fini(ttm);
|
||||
kmem_free(ttm, sizeof(*ttm));
|
||||
kmem_free(ttm_agp, sizeof(*ttm_agp));
|
||||
}
|
||||
|
||||
static const struct ttm_backend_func ttm_agp_backend_func = {
|
||||
|
|
Loading…
Reference in New Issue