Author: tsoome Date: Sun Feb 23 15:21:15 2020 New Revision: 358260 URL: https://svnweb.freebsd.org/changeset/base/358260
Log: loader: alloc_pread() should set errno if malloc fails We may want to find out why alloc_pread() failed. Modified: head/stand/common/misc.c Modified: head/stand/common/misc.c ============================================================================== --- head/stand/common/misc.c Sun Feb 23 15:18:28 2020 (r358259) +++ head/stand/common/misc.c Sun Feb 23 15:21:15 2020 (r358260) @@ -149,6 +149,7 @@ alloc_pread(int fd, off_t off, size_t len) #ifdef DEBUG printf("\nmalloc(%d) failed\n", (int)len); #endif + errno = ENOMEM; return (NULL); } if (lseek(fd, off, SEEK_SET) == -1) { _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"