[PATCH 6.8 309/336] net: fix out-of-bounds access in ops_init