Date: Wed, 29 May 2019 07:24:10 +0000 (UTC) From: Toomas Soome <tsoome@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r348352 - head/stand/libsa/zfs Message-ID: <201905290724.x4T7OA9f013291@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905290724.x4T7OA9f013291>