OpenBSD: Use FREE instead of KFREE

In OpenBSD releases prior to 4.2, use the system (kernel-specific)
FREE macro to release space in the kernel module, not KFREE. The
latter does not exist and results in unresolved symbols when trying
to load the kernel module. (This was undoubtedly a typo.)

Change-Id: Id66704ab4d0928e2ce1234de16bb74fe22f4f9c7
Reviewed-on: http://gerrit.openafs.org/1909
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Antoine Verheijen 2010-05-06 09:09:19 -06:00 committed by Derrick Brashear
parent 8e27248698
commit 8fe309e6b6

View File

@ -88,7 +88,7 @@ extern void osi_obsd_Free(void *p, size_t asize);
free((p), (mflags)) free((p), (mflags))
#else #else
#define BSD_KMALLOC MALLOC #define BSD_KMALLOC MALLOC
#define BSD_KFREE KFREE #define BSD_KFREE FREE
#endif /* AFS_OBSD42_ENV */ #endif /* AFS_OBSD42_ENV */
/* proc, cred */ /* proc, cred */