svn commit: r363814 - stable/12/sys/dev/cxgbe
Mark Johnston
markj at FreeBSD.org
Mon Aug 3 23:05:48 UTC 2020
Author: markj
Date: Mon Aug 3 23:05:47 2020
New Revision: 363814
URL: https://svnweb.freebsd.org/changeset/base/363814
Log:
MFC r363623:
cxgbe(4): Stop checking for failures from malloc(M_WAITOK).
Modified:
stable/12/sys/dev/cxgbe/t4_main.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/cxgbe/t4_main.c
==============================================================================
--- stable/12/sys/dev/cxgbe/t4_main.c Mon Aug 3 22:13:02 2020 (r363813)
+++ stable/12/sys/dev/cxgbe/t4_main.c Mon Aug 3 23:05:47 2020 (r363814)
@@ -9667,10 +9667,6 @@ load_fw(struct adapter *sc, struct t4_data *fw)
}
fw_data = malloc(fw->len, M_CXGBE, M_WAITOK);
- if (fw_data == NULL) {
- rc = ENOMEM;
- goto done;
- }
rc = copyin(fw->data, fw_data, fw->len);
if (rc == 0)
@@ -9699,10 +9695,6 @@ load_cfg(struct adapter *sc, struct t4_data *cfg)
}
cfg_data = malloc(cfg->len, M_CXGBE, M_WAITOK);
- if (cfg_data == NULL) {
- rc = ENOMEM;
- goto done;
- }
rc = copyin(cfg->data, cfg_data, cfg->len);
if (rc == 0)
@@ -9748,10 +9740,6 @@ load_boot(struct adapter *sc, struct t4_bootrom *br)
}
br_data = malloc(br->len, M_CXGBE, M_WAITOK);
- if (br_data == NULL) {
- rc = ENOMEM;
- goto done;
- }
rc = copyin(br->data, br_data, br->len);
if (rc == 0)
@@ -9780,10 +9768,6 @@ load_bootcfg(struct adapter *sc, struct t4_data *bc)
}
bc_data = malloc(bc->len, M_CXGBE, M_WAITOK);
- if (bc_data == NULL) {
- rc = ENOMEM;
- goto done;
- }
rc = copyin(bc->data, bc_data, bc->len);
if (rc == 0)
More information about the svn-src-all
mailing list