Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libnvdimm/of_pmem: Provide a unique name for bus provider

ndctl binaries, v66 and older, mistakenly require the ndbus to have
unique names. If not while enumerating the bus in userspace it drops bus
with similar names. This results in us not listing devices beneath the
bus.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tested-by: Vaibhav Jain <vaibhav@linux.ibm.com>
Link: https://lore.kernel.org/r/20190807040029.11344-1-aneesh.kumar@linux.ibm.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

authored by

Aneesh Kumar K.V and committed by
Dan Williams
49bddc73 d45331b0

+1 -1
+1 -1
drivers/nvdimm/of_pmem.c
··· 42 42 return -ENOMEM; 43 43 44 44 priv->bus_desc.attr_groups = bus_attr_groups; 45 - priv->bus_desc.provider_name = "of_pmem"; 45 + priv->bus_desc.provider_name = kstrdup(pdev->name, GFP_KERNEL); 46 46 priv->bus_desc.module = THIS_MODULE; 47 47 priv->bus_desc.of_node = np; 48 48