commit | 2e9cacb6a6be3af81b89df277454194616d6d23b | [log] [tgz] |
---|---|---|
author | Michael Walle <mwalle@kernel.org> | Wed Apr 03 16:31:55 2024 +0200 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 11 15:52:19 2024 -0600 |
tree | 4291cc5ec45f040c88eb78fe74ab60c0b1b71273 | |
parent | a7e364bce79c733154f25c406d6b6aa9385a2aff [diff] |
net: ti: am65-cpsw: Fix buffer overflow The device name is a concatenation of the device node name of the cpsw device and of the device node name of the port. In my case that is ethernet@8000000 port@1 First the buffer is really too small, but more importantly, there is no boundary check. Use snprintf() and increase the buffer size. Fixes: 38922b1f4acc ("net: ti: am65-cpsw: Add support for multi port independent MAC mode") Signed-off-by: Michael Walle <mwalle@kernel.org>