]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: core: fix use after free in of_i2c_notify
authorWen Yang <wenyang@linux.alibaba.com>
Fri, 8 Nov 2019 08:36:48 +0000 (16:36 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 15 Nov 2019 21:01:13 +0000 (22:01 +0100)
commitfa64eccdeb5163dac2b48eb881b0d93c05bf96de
treed8223a4563157f1c77187c3ae7f785acda76d7a6
parent885e52c1a27ab1857efcab6dab67753930fd7be5
i2c: core: fix use after free in of_i2c_notify

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

Fixes: 20a52c089ddc ("i2c: break out OF support into separate file")
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-of.c