summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-03 14:57:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-13 19:32:32 +0300
commit7e79b38fe9a403b065ac5915465f620a8fb3de84 (patch)
tree0d98be24ecfb73f02377fc75c11707959998514d /sound
parent46651077765c80a0d6f87f3469129a72e49ce91b (diff)
downloadlinux-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