Re: [PATCH net-next 2/2] net: mdio: add a driver for PIC64-HPSC/HX MDIO controller

From: Andrew Lunn

Date: Thu Mar 19 2026 - 13:07:01 EST


> + u32 bus_freq;

> + of_property_read_u32(np, "clock-frequency", &bus_freq);

clock-frequency is not required. So this can return an error, and
leave bus_freq untouched, which is a stack variable with random
contents.

Andrew