wkz / mdio-tools

Low-level debug tools for MDIO devices.
GNU General Public License v2.0
66 stars 31 forks source link

mdio: align buffer #5

Closed mhei closed 3 years ago

mhei commented 3 years ago

During cross-compilation and testing this tool for OpenWrt inclusion (see https://github.com/openwrt/packages/pull/16112), I found that the tool immediately segfaults after start.

Further investigations showed that on at least arm926ej-s based boards, the buf variable should be aligned - without alignment the members in the structure do not have desired values.

Signed-off-by: Michael Heimpold mhei@heimpold.de

wkz commented 3 years ago

Thanks!