Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7623225f authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

Revert "wireless: Use first phyX name available when registering phy devices."



This reverts commit 5a254ffe.

The commit failed to take into account that allocated wireless devices
(wiphys) are not added into the device list upon allocation, but only
when they are registered. Therefore, it opened up a race between
allocating and registering a name, so that if two processes allocate and
register concurrently ("alloc, alloc, register, register" rather than
"alloc, register, alloc, register") the code will attempt to use the
same name twice.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent d86a4f2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment