OpenCloudOS-Kernel/drivers/net/wireless/marvell
Greg Kroah-Hartman 7e79b38fe9 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>
2021-05-13 18:32:32 +02:00
..
libertas libertas: register sysfs groups properly 2021-05-13 18:32:32 +02:00
libertas_tf libertas_tf: Remove duplicate struct declaration 2021-04-21 12:38:40 +03:00
mwifiex mwifiex: Remove unneeded variable: "ret" 2021-04-17 20:53:40 +03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mwl8k.c mwl8k: Fix a double Free in mwl8k_probe_hw 2021-04-18 09:35:06 +03:00