Unregistering was completly missing the check, registering was missing ERR_PTR conditions. Fix both. Wolfram Sang (2): i2c: slave: improve sanity check when registering i2c: slave: add sanity check when unregistering driver drivers/i2c/i2c-core-slave.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.20.1