Skip to content

Commit

Permalink
rsmi: add missing error test in previous commit
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Sep 24, 2021
1 parent 520e59b commit d382d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hwloc/topology-rsmi.c
Expand Up @@ -279,7 +279,7 @@ hwloc_rsmi_discover(struct hwloc_backend *backend, struct hwloc_disc_status *dst
xgmi_bws = calloc(nb*nb, sizeof(*xgmi_bws));
osdevs2 = malloc(nb *sizeof(*osdevs2));
xgmi_hops = calloc(nb*nb, sizeof(*xgmi_hops));
if (!osdevs || !xgmi_bws)
if (!osdevs || !xgmi_bws || !osdevs2 || !xgmi_hops)
goto out;

for (i=0; i<nb; i++) {
Expand Down

0 comments on commit d382d86

Please sign in to comment.