diff --git a/drivers/base/class.c b/drivers/base/class.c index 7e78aee0fd6c39..7b38fdf8e1d78e 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c @@ -213,6 +213,7 @@ int class_register(const struct class *cls) return 0; err_out: + lockdep_unregister_key(key); kfree(cp); return error; }