mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
mlx(4): Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 556cd18fb07604e3442819b221afb2a19b924dbd)
This commit is contained in:
parent
4fee8d3e92
commit
cf44738feb
1 changed files with 2 additions and 2 deletions
|
|
@ -2075,8 +2075,8 @@ mlx_user_command(struct mlx_softc *sc, struct mlx_usercommand *mu)
|
|||
goto out;
|
||||
}
|
||||
MLX_IO_UNLOCK(sc);
|
||||
if (((kbuf = malloc(mu->mu_datasize, M_DEVBUF, M_WAITOK)) == NULL) ||
|
||||
(error = copyin(mu->mu_buf, kbuf, mu->mu_datasize))) {
|
||||
kbuf = malloc(mu->mu_datasize, M_DEVBUF, M_WAITOK);
|
||||
if ((error = copyin(mu->mu_buf, kbuf, mu->mu_datasize))) {
|
||||
MLX_IO_LOCK(sc);
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue