mdio-tools: backport segfault fix
authorAleksander Jan Bajkowski <[email protected]>
Sun, 7 Sep 2025 17:24:07 +0000 (19:24 +0200)
committerRobert Marko <[email protected]>
Thu, 13 Nov 2025 07:44:08 +0000 (08:44 +0100)
commit63656f59ecbb28e3123ce039c9a59f263a96b21e
treef2a6085ae7fd99d6662dd81ab017d7d5c5235592
parent2590594111be87dbed3ff7e5db7b99845eada382
mdio-tools: backport segfault fix

Return an ENOMEM error when the buffer is too small to perform the operation.

Before:
$ mdio mt7530-0 0x05:31 dump 0x0+512
Segmentation fault

After:
$ mdio mt7530-0 0x05:31 dump 0x0+512
ERROR: Dump operation failed (-12)

Signed-off-by: Aleksander Jan Bajkowski <[email protected]>
net/mdio-tools/Makefile
net/mdio-tools/patches/0001-mdio-fix-segmentation-fault-in-dump-operation.patch [new file with mode: 0644]