mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
Revert "net: core: maybe return -EEXIST in __dev_alloc_name"
This reverts commit d6f295e9de; some userspace (in the case
we noticed it's wpa_supplicant), is relying on the current
error code to determine that a fixed name interface already
exists.
Reported-by: Jouni Malinen <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
42d779ffc1
commit
029b6d1405
1 changed files with 1 additions and 1 deletions
|
|
@ -1106,7 +1106,7 @@ static int __dev_alloc_name(struct net *net, const char *name, char *buf)
|
|||
* when the name is long and there isn't enough space left
|
||||
* for the digits, or if all bits are used.
|
||||
*/
|
||||
return p ? -ENFILE : -EEXIST;
|
||||
return -ENFILE;
|
||||
}
|
||||
|
||||
static int dev_alloc_name_ns(struct net *net,
|
||||
|
|
|
|||
Loading…
Reference in a new issue