]> git.baikalelectronics.ru Git - uboot.git/commit
net: mdio-uclass: rewrite dm_mdio_post_probe using strlcpy
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 27 Sep 2021 11:22:00 +0000 (14:22 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:57 +0000 (18:50 +0300)
commitc8896ea208508f85d0a7ef5e7f7417635a272904
tree5601445d0599a3a3dbd3d5ebc6b296c4a6709e7f
parentef5aa0f0981f3f6bc3cdf0d1e46dec4e96fe9e14
net: mdio-uclass: rewrite dm_mdio_post_probe using strlcpy

dm_mdio_post_probe used to be vulnerable after truncation, but has been
patched by commit b17d873a81c3 ("net: Fix Covarity Defect 244093").
Nonetheless, we can use strlcpy like the rest of the code base now,
which yields the same result.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
net/mdio-uclass.c