Module Name: src Committed By: riastradh Date: Sat Apr 25 21:00:29 UTC 2015
Modified Files: src/sys/external/bsd/drm2/ttm: ttm_agp_backend.c Log Message: kmem_free the container structure, not a substructure. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c diff -u src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c:1.3 src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c:1.4 --- src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c:1.3 Thu Aug 14 16:50:22 2014 +++ src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c Sat Apr 25 21:00:29 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: ttm_agp_backend.c,v 1.3 2014/08/14 16:50:22 riastradh Exp $ */ +/* $NetBSD: ttm_agp_backend.c,v 1.4 2015/04/25 21:00:29 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.3 2014/08/14 16:50:22 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ttm_agp_backend.c,v 1.4 2015/04/25 21:00:29 riastradh 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 = {