svn commit: r358260 - head/stand/common
Toomas Soome
tsoome at FreeBSD.org
Sun Feb 23 15:21:16 UTC 2020
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) {
More information about the svn-src-head
mailing list