]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: maybe return -EEXIST in __dev_alloc_name
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Sun, 12 Nov 2017 23:15:09 +0000 (00:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 07:38:46 +0000 (16:38 +0900)
commitddb03ddf2b14fe8f5caf2de4103e28b4c7287b57
tree91b9731a114dd729bad294f9243e05de41e917b6
parentd6bf5f61b8c1df67528811da39626dc91e631269
net: core: maybe return -EEXIST in __dev_alloc_name

If we're given format string with no %d, -EEXIST is a saner error code.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c