diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2017-11-13 00:15:10 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-14 16:38:46 +0900 |
commit | 87c320e51519a83c496ab7bfb4e96c8f9c001e89 (patch) | |
tree | b9ba9a9706210253ef272c349f8a70b10db5bc13 /tools | |
parent | d6f295e9def0bee85b37bdffb95153721935c342 (diff) | |
download | linux-stable-87c320e51519a83c496ab7bfb4e96c8f9c001e89.tar.gz linux-stable-87c320e51519a83c496ab7bfb4e96c8f9c001e89.tar.bz2 linux-stable-87c320e51519a83c496ab7bfb4e96c8f9c001e89.zip |
net: core: dev_get_valid_name is now the same as dev_alloc_name_ns
If name contains a %, it's easy to see that this patch doesn't change
anything (other than eliminate the duplicate dev_valid_name
call). Otherwise, we'll now just spend a little time in snprintf()
copying name to the stack buffer allocated in dev_alloc_name_ns, and do
the __dev_get_by_name using that buffer rather than name.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions