[PATCH openEuler-22.03-LTS-SP1] net: fix out-of-bounds access in ops_init