]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: aspeed: fixed potential null pointer dereference
authorBrendan Higgins <brendanhiggins@google.com>
Sat, 29 Jul 2017 01:00:12 +0000 (18:00 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 14 Aug 2017 20:08:13 +0000 (22:08 +0200)
commit2a9a8ade3355c9510368a33d3bd3d1babccfbc13
treececbf06006c6d959de29bd75387e4023b58fffa5
parentf7ff715bceec7be637835d73caaf353b49a4cf3a
i2c: aspeed: fixed potential null pointer dereference

Before I skipped null checks when the master is in the STOP state; this
fixes that.

Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Acked-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Fixes: 05727007130b ("i2c: aspeed: added driver for Aspeed I2C")
drivers/i2c/busses/i2c-aspeed.c