Date: Mon, 27 Jul 2020 14:16:27 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r363606 - stable/12/sys/opencrypto Message-ID: <202007271416.06REGRZZ069439@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Mon Jul 27 14:16:27 2020 New Revision: 363606 URL: https://svnweb.freebsd.org/changeset/base/363606 Log: MFC r363374: crypto(9): Stop checking for failures from malloc(M_WAITOK). PR: 240545 Modified: stable/12/sys/opencrypto/cryptodev.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/opencrypto/cryptodev.c ============================================================================== --- stable/12/sys/opencrypto/cryptodev.c Mon Jul 27 14:15:50 2020 (r363605) +++ stable/12/sys/opencrypto/cryptodev.c Mon Jul 27 14:16:27 2020 (r363606) @@ -1256,11 +1256,7 @@ cryptodev_key(struct crypt_kop *kop) return (EINVAL); } - krp = (struct cryptkop *)malloc(sizeof *krp, M_XDATA, M_WAITOK|M_ZERO); - if (!krp) { - SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); - return (ENOMEM); - } + krp = malloc(sizeof(*krp), M_XDATA, M_WAITOK | M_ZERO); krp->krp_op = kop->crk_op; krp->krp_status = kop->crk_status; krp->krp_iparams = kop->crk_iparams;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007271416.06REGRZZ069439>