Skip to content
Commit 122f8ec7 authored by Lin Yi's avatar Lin Yi Committed by Greg Kroah-Hartman
Browse files

lib : kobject: fix refcount imblance on kobject_rename



the kobj refcount increased by kobject_get should be released before
error return, otherwise lead to a memory leak.

Signed-off-by: default avatarLin Yi <teroincn@163.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5666d896
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment