mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
ctl: Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45852
(cherry picked from commit 8e6dd41858)
This commit is contained in:
parent
44a6f9c9a0
commit
d2d4758456
1 changed files with 0 additions and 6 deletions
|
|
@ -2711,12 +2711,6 @@ ctl_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
|
|||
}
|
||||
|
||||
entries = malloc(ooa_hdr->alloc_len, M_CTL, M_WAITOK | M_ZERO);
|
||||
if (entries == NULL) {
|
||||
printf("%s: could not allocate %d bytes for OOA "
|
||||
"dump\n", __func__, ooa_hdr->alloc_len);
|
||||
retval = ENOMEM;
|
||||
break;
|
||||
}
|
||||
|
||||
mtx_lock(&softc->ctl_lock);
|
||||
if ((ooa_hdr->flags & CTL_OOA_FLAG_ALL_LUNS) == 0 &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue