sw_get_br_id() should not return a pointer to "id" located on the stack (invalid after return).
This will also fix a compile warning (want all source to compile without warnings).
My local fix is to change "id" to a static but it assumes that only one thread executes this at a time (likely to be ok).
sw_get_br_id() should not return a pointer to "id" located on the stack (invalid after return). This will also fix a compile warning (want all source to compile without warnings). My local fix is to change "id" to a static but it assumes that only one thread executes this at a time (likely to be ok).
https://github.com/Microchip-Ethernet/EVB-KSZ9477/blob/d7129fdf2b582ff7e25c63e458cc60dd4739226f/KSZ/linux-drivers/ksz9897/linux-4.14/drivers/net/ethernet/micrel/ksz_sw_9897.c#L13122