mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 07:16:43 +07:00
d0709a6518
This makes access to the STA hash table/list use RCU to protect against freeing of items. However, it's not a true RCU, the copy step is missing: whenever somebody changes a STA item it is simply updated. This is an existing race condition that is now somewhat understandable. This patch also fixes the race key freeing vs. STA destruction by making sure that sta_info_destroy() is always called under RTNL and frees the key. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
15 lines
427 B
C
15 lines
427 B
C
#ifndef __MAC80211_DEBUGFS_STA_H
|
|
#define __MAC80211_DEBUGFS_STA_H
|
|
|
|
#include "sta_info.h"
|
|
|
|
#ifdef CONFIG_MAC80211_DEBUGFS
|
|
void ieee80211_sta_debugfs_add(struct sta_info *sta);
|
|
void ieee80211_sta_debugfs_remove(struct sta_info *sta);
|
|
#else
|
|
static inline void ieee80211_sta_debugfs_add(struct sta_info *sta) {}
|
|
static inline void ieee80211_sta_debugfs_remove(struct sta_info *sta) {}
|
|
#endif
|
|
|
|
#endif /* __MAC80211_DEBUGFS_STA_H */
|