Message ID | 20150630003134.7510.65651.stgit@dwillia2-desk3.jf.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f979b57f731f |
Headers | show |
diff --git a/lib/libndctl.c b/lib/libndctl.c index b45fd56a0e7b..0cdc3c798ad0 100644 --- a/lib/libndctl.c +++ b/lib/libndctl.c @@ -1113,6 +1113,9 @@ static int add_dimm(void *parent, int id, const char *dimm_base) if (!dimm->dimm_path) goto err_read; + sprintf(path, "%s/modalias", dimm_base); + if (sysfs_read_attr(ctx, path, buf) < 0) + goto err_read; dimm->module = to_module(ctx, buf); dimm->handle = -1;