[openEuler-5.10 163/496] i2c: Fix a potential use after free