diff options
| author | Michael Walle <[email protected]> | 2024-04-03 16:31:55 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-04-11 15:52:19 -0600 |
| commit | 0b0652737381e839a2d55c892bf9e4f1d86db21b (patch) | |
| tree | 4291cc5ec45f040c88eb78fe74ab60c0b1b71273 /scripts/const_structs.checkpatch | |
| parent | 3206b77c844c7f2d85e9154982f6ef9d72adaab6 (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 <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
