diff options
| author | Neil Brown <[email protected]> | 2008-06-28 08:31:26 +1000 |
|---|---|---|
| committer | Neil Brown <[email protected]> | 2008-06-28 08:31:26 +1000 |
| commit | f48ed538386cb41559282d989354e8f5d442d71c (patch) | |
| tree | 3faa24718c098f19b7e331eae0ba29f145e902da /net/unix/sysctl_net_unix.c | |
| parent | 5e96ee65c8bd629ce093da67a066d3946468298a (diff) | |
Close race in md_probe
There is a possible race in md_probe. If two threads call md_probe
for the same device, then one could exit (having checked that
->gendisk exists) before the other has called kobject_init_and_add,
thus returning an incomplete kobj which will cause problems when
we try to add children to it.
So extend the range of protection of disks_mutex slightly to
avoid this possibility.
Signed-off-by: Neil Brown <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions