[PATCH 6.12 335/826] i2c: dev: Fix memory leak when underlying adapter does not support I2C