
This series is the result of a small patching spree, which started off by noticing some truncation that might take place when setting the MDIO bus name in one driver, and then looked at what other drivers do, and then.....
Vladimir Oltean (25): arch: powerpc: mpc85xx: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation board: gdsys: a38x: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: armada100_fec: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: at91_emac: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: bcm-sf2: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: eepro100: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: ep93xx: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: enetc: ensure imdio.name is NULL terminated after MDIO_NAME_LEN truncation net: mcdmafec: ensure bus->name is NULL terminated after MDIO_NAME_LEN truncation net: ftmac110: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: lpc32xx: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: macb: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: mpc8xx_fec: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: dsa: felix: ensure mii_bus->name is NULL terminated after MDIO_NAME_LEN truncation net: mvgbe: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: sh_eth: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: smc911x: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: davinci_emac: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: qe: uec: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation net: mdio-uclass: rewrite dm_mdio_post_probe using strlcpy scripts: ensure the cocci script for miiphy_register does not leave NULL-unterminated strings net: dsa: felix: check return code of mdio_alloc and mdio_register net: dsa: ensure port names are NULL-terminated after DSA_PORT_NAME_LENGTH truncation arch: powerpc: mpc85xx: free MDIO bus if mdio_register fails scripts: ensure the cocci script for miiphy_register does not leak the MDIO bus
arch/powerpc/cpu/mpc85xx/ether_fcc.c | 6 ++++-- board/gdsys/a38x/ihs_phys.c | 4 +--- drivers/net/armada100_fec.c | 2 +- drivers/net/at91_emac.c | 2 +- drivers/net/bcm-sf2-eth.c | 2 +- drivers/net/eepro100.c | 2 +- drivers/net/ep93xx_eth.c | 2 +- drivers/net/fsl_enetc.c | 2 +- drivers/net/fsl_mcdmafec.c | 2 +- drivers/net/ftmac110.c | 2 +- drivers/net/lpc32xx_eth.c | 2 +- drivers/net/macb.c | 4 ++-- drivers/net/mpc8xx_fec.c | 2 +- drivers/net/mscc_eswitch/felix_switch.c | 14 +++++++++++--- drivers/net/mvgbe.c | 2 +- drivers/net/sh_eth.c | 2 +- drivers/net/smc911x.c | 2 +- drivers/net/ti/davinci_emac.c | 2 +- drivers/qe/uec.c | 2 +- net/dsa-uclass.c | 4 ++-- net/mdio-uclass.c | 2 +- scripts/coccinelle/net/mdio_register.cocci | 4 ++-- 22 files changed, 38 insertions(+), 30 deletions(-)