-
由 Ard Biesheuvel 提交于
stable inclusion from linux-4.19.129 commit 7ba9be0ba0ce951deeaa057bfcf01f2b21a5b89a -------------------------------- commit d8bd8c6e upstream. The documentation provided by kobject_init_and_add() clearly spells out the need to call kobject_put() on the kobject if an error is returned. Add this missing call to the error path. Cc: <stable@vger.kernel.org> Reported-by: N亿一 <teroincn@gmail.com> Signed-off-by: NArd Biesheuvel <ardb@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
c5119f38