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

From: Charles Perry

Date: Thu Mar 19 2026 - 15:35:13 EST


On Thu, Mar 19, 2026 at 06:03:09PM +0100, Andrew Lunn wrote:
> > + 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.

You're right, I'll check the return value.

Thanks,
Charles

>
> Andrew