svn commit: r348352 - head/stand/libsa/zfs
Toomas Soome
tsoome at FreeBSD.org
Wed May 29 07:24:11 UTC 2019
Author: tsoome
Date: Wed May 29 07:24:10 2019
New Revision: 348352
URL: https://svnweb.freebsd.org/changeset/base/348352
Log:
loader: zfs_alloc and zfs_free should use panic
The zfs alloc and free code print out the error and get stuck in infinite loop; use panic() instead.
Modified:
head/stand/libsa/zfs/zfsimpl.c
Modified: head/stand/libsa/zfs/zfsimpl.c
==============================================================================
--- head/stand/libsa/zfs/zfsimpl.c Wed May 29 03:14:46 2019 (r348351)
+++ head/stand/libsa/zfs/zfsimpl.c Wed May 29 07:24:10 2019 (r348352)
@@ -107,8 +107,7 @@ zfs_alloc(size_t size)
char *ptr;
if (zfs_temp_ptr + size > zfs_temp_end) {
- printf("ZFS: out of temporary buffer space\n");
- for (;;) ;
+ panic("ZFS: out of temporary buffer space");
}
ptr = zfs_temp_ptr;
zfs_temp_ptr += size;
@@ -122,8 +121,7 @@ zfs_free(void *ptr, size_t size)
zfs_temp_ptr -= size;
if (zfs_temp_ptr != ptr) {
- printf("ZFS: zfs_alloc()/zfs_free() mismatch\n");
- for (;;) ;
+ panic("ZFS: zfs_alloc()/zfs_free() mismatch");
}
}
More information about the svn-src-all
mailing list