mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00: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
This commit is contained in:
parent
bac98f86c9
commit
6a2a385507
@ -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 New Issue
Block a user