Date: Sun, 23 Feb 2020 15:21:15 +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: r358260 - head/stand/common Message-ID: <202002231521.01NFLFjC008205@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002231521.01NFLFjC008205>