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