crypto(9): Stop checking for failures from malloc(M_WAITOK).
PR: 240545 Submitted by: Andrew Reiter <arr@watson.org> Reviewed by: cem, delphij, jhb MFC after: 1 week Event: July 2020 Bugathon
This commit is contained in:
parent
17eee3b501
commit
e1a82b35bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363374
@ -1315,11 +1315,7 @@ cryptodev_key(struct crypt_kop *kop)
|
|||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
krp = (struct cryptkop *)malloc(sizeof *krp, M_XDATA, M_WAITOK|M_ZERO);
|
krp = malloc(sizeof(*krp), M_XDATA, M_WAITOK | M_ZERO);
|
||||||
if (!krp) {
|
|
||||||
SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__);
|
|
||||||
return (ENOMEM);
|
|
||||||
}
|
|
||||||
krp->krp_op = kop->crk_op;
|
krp->krp_op = kop->crk_op;
|
||||||
krp->krp_status = kop->crk_status;
|
krp->krp_status = kop->crk_status;
|
||||||
krp->krp_iparams = kop->crk_iparams;
|
krp->krp_iparams = kop->crk_iparams;
|
||||||
|
Loading…
Reference in New Issue
Block a user