Files
kernel-starfive-jh7110/net/mac80211
Johannes Berg 43ba7e958f mac80211: atomically check whether STA exists already
When a STA structure is added, it is often checked whether it
already exists before adding it. This, however, isn't done
atomically so there is a race condition that could lead to two
STA structures being added with the same MAC address. This
patch changes sta_info_add() to return an ERR_PTR in case
of failure and adds the failure mode -EEXIST when the STA
already exists.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Luis Carlos Cobo <luisca@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-02-29 15:41:34 -05:00
..
2007-11-02 08:47:06 +01:00
2007-05-05 11:46:38 -07:00
2008-02-05 14:35:47 -05:00
2008-02-29 15:37:26 -05:00
2007-10-10 16:53:16 -07:00
2007-10-10 16:53:16 -07:00
2008-02-29 15:41:32 -05:00
2008-02-29 15:37:02 -05:00
2008-02-29 15:37:01 -05:00
2008-02-29 15:19:17 -05:00
2008-02-29 15:37:02 -05:00
2008-02-29 15:37:01 -05:00