diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-03 14:57:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-13 19:32:32 +0300 |
commit | 7e79b38fe9a403b065ac5915465f620a8fb3de84 (patch) | |
tree | 0d98be24ecfb73f02377fc75c11707959998514d /sound | |
parent | 46651077765c80a0d6f87f3469129a72e49ce91b (diff) | |
download | linux-7e79b38fe9a403b065ac5915465f620a8fb3de84.tar.xz |
libertas: register sysfs groups properly
The libertas driver was trying to register sysfs groups "by hand" which
causes them to be created _after_ the device is initialized and
announced to userspace, which causes races and can prevent userspace
tools from seeing the sysfs files correctly.
Fix this up by using the built-in sysfs_groups pointers in struct
net_device which were created for this very reason, fixing the race
condition, and properly allowing for any error that might have occured
to be handled properly.
Cc: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210503115736.2104747-54-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions