https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206749
--- Comment #1 from CTurt <[email protected]> --- Actually, since `M_WAITOK` is specified for the allocations, the current thread would theoretically sleep forever, whilst waiting for enough memory for the allocation. >From the man page (https://www.freebsd.org/cgi/man.cgi?query=malloc&sektion=9): "The malloc(), realloc(), and reallocf() functions cannot return NULL if M_WAITOK is specified." So the check for this allocation being NULL is not needed: if ((shdr = malloc(nbytes, M_LINKER, M_WAITOK)) == NULL) { error = ENOMEM; goto out; } -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
