mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
kern_fail: Stop checking for failures from fp_malloc(M_WAITOK)
`fp_malloc` is defined as a macro that redirects to `malloc`. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 6a2a385507c79abaa9db9eabfdd827362f3dc7ed)
This commit is contained in:
parent
99d3ce80ba
commit
fbaf480651
1 changed files with 4 additions and 5 deletions
|
|
@ -479,11 +479,10 @@ fail_point_init(struct fail_point *fp, const char *fmt, ...)
|
|||
|
||||
/* Allocate the name and fill it in. */
|
||||
name = fp_malloc(n + 1, M_WAITOK);
|
||||
if (name != NULL) {
|
||||
va_start(ap, fmt);
|
||||
vsnprintf(name, n + 1, fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
va_start(ap, fmt);
|
||||
vsnprintf(name, n + 1, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
fp->fp_name = name;
|
||||
fp->fp_location = "";
|
||||
fp->fp_flags |= FAIL_POINT_DYNAMIC_NAME;
|
||||
|
|
|
|||
Loading…
Reference in a new issue