mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
mac802154: Rename kfree_rcu() to kvfree_rcu_mightsleep()
The k[v]free_rcu() macro's single-argument form is deprecated.
Therefore switch to the new k[v]free_rcu_mightsleep() variant. The goal
is to avoid accidental use of the single-argument forms, which can
introduce functionality bugs in atomic contexts and latency bugs in
non-atomic contexts.
The callers are holding a mutex so the context allows blocking. Hence
using the API with a single argument will be fine, but use its new name.
There is no functionality change with this patch.
Fixes: 57588c7117
("mac802154: Handle passive scanning")
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
This commit is contained in:
parent
936c7e19c6
commit
eb56a4cbc3
@ -52,7 +52,7 @@ static int mac802154_scan_cleanup_locked(struct ieee802154_local *local,
|
||||
request = rcu_replace_pointer(local->scan_req, NULL, 1);
|
||||
if (!request)
|
||||
return 0;
|
||||
kfree_rcu(request);
|
||||
kvfree_rcu_mightsleep(request);
|
||||
|
||||
/* Advertize first, while we know the devices cannot be removed */
|
||||
if (aborted)
|
||||
@ -403,7 +403,7 @@ int mac802154_stop_beacons_locked(struct ieee802154_local *local,
|
||||
request = rcu_replace_pointer(local->beacon_req, NULL, 1);
|
||||
if (!request)
|
||||
return 0;
|
||||
kfree_rcu(request);
|
||||
kvfree_rcu_mightsleep(request);
|
||||
|
||||
nl802154_beaconing_done(wpan_dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user