diff options
author | 2019-05-05 19:33:20 +0300 | |
---|---|---|
committer | 2019-05-07 13:02:43 -0300 | |
commit | e7a5b4aafd82771f8924905c208d5d236ddcb671 (patch) | |
tree | bae764d152d85fb319e3844635d533b264b1df32 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | lib/scatterlist: Remove leftover from sg_page_iter comment (diff) | |
download | wireguard-linux-e7a5b4aafd82771f8924905c208d5d236ddcb671.tar.xz wireguard-linux-e7a5b4aafd82771f8924905c208d5d236ddcb671.zip |
RDMA/device: Don't fire uevent before device is fully initialized
When the refcount is 0 the device is invisible to netlink. However in the
patch below the refcount = 1 was moved to after the device_add(). This
creates a race where userspace can issue a netlink query after the
device_add() event and not see the device as visible.
Ensure that no uevent is fired before device is fully registered.
Fixes: d79af7242bb2 ("RDMA/device: Expose ib_device_try_get(()")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions