diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-10-23 08:23:41 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-24 13:02:58 -0700 |
commit | bd07063dd11f6fda903802a5868960be3690d327 (patch) | |
tree | 74f0a0bf84d4649f6686d685b416b4826a320462 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fb1c535b13b7fa013e70265535182638ef2f04d6 (diff) |
net: don't use input buffer of __dev_alloc_name() as a scratch space
Callers of __dev_alloc_name() want to pass dev->name as
the output buffer. Make __dev_alloc_name() not clobber
that buffer on failure, and remove the workarounds
in callers.
dev_alloc_name_ns() is now completely unnecessary.
The extra strscpy() added here will be gone by the end
of the patch series.
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20231023152346.3639749-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions