Messages in this thread | | | From | Richard Palethorpe <> | Subject | Re: [PATCH v2] nvdimm: Avoid race between probe and reading device attributes | Date | Tue, 02 Feb 2021 16:58:25 +0000 |
| |
Hello Dan,
Dan Williams <dan.j.williams@intel.com> writes: > > I see why this works, but I think the bug is in > available_slots_show(). It is a bug for a sysfs attribute to reference > driver-data without synchronizing against bind. So it should be > possible for probe set that pointer whenever it wants. In other words > this fix (forgive the whitespace damage from pasting).
Ah, that makes sense! I see the new patch and all is good AFAICT.
-- Thank you, Richard.
| |