Linux/linux a4c2fecdrivers/i2c i2c-core-of.c

i2c: core: fix use after free in of_i2c_notify

We can't use "adap->dev" after it has been freed.

Fixes: 5bf4fa7daea6 ("i2c: break out OF support into separate file")
Signed-off-by: Wen Yang <wenyang at linux.alibaba.com>
Signed-off-by: Wolfram Sang <wsa at the-dreams.de>
DeltaFile
+2-2drivers/i2c/i2c-core-of.c
+2-21 files

UnifiedSplitRaw