OpenBSD: Use osi_obsd_Free() for all releases of OBSD
authorAntoine Verheijen <antoine@ualberta.ca>
Thu, 6 May 2010 15:10:38 +0000 (09:10 -0600)
committerDerrick Brashear <shadow@dementia.org>
Thu, 6 May 2010 19:18:34 +0000 (12:18 -0700)
Use osi_obsd_Free() in afs_osi_Free() for all releases of OpenBSD,
not just releases from 4.4 onward. Otherwise, afs_osi_Free() will
use AFS_KFREE, which does not exist, since OBSD/osi_machdep.h is
not included, resulting in unresolved symbols when trying to load
the kernel module.

Change-Id: Ic9632c9df347cc17e122b6302ef14e63fa5b68b4
Reviewed-on: http://gerrit.openafs.org/1910
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/afs/afs_osi_alloc.c

index f5e6d8b..d5282a1 100644 (file)
@@ -109,7 +109,7 @@ afs_osi_Free(void *x, size_t asize)
     osi_linux_free(x);
 #elif defined(AFS_FBSD_ENV)
     osi_fbsd_free(x);
-#elif defined(AFS_OBSD44_ENV)
+#elif defined(AFS_OBSD_ENV)
     osi_obsd_Free(x, asize);
 #else
     AFS_KFREE((struct osimem *)x, asize);