]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: vpd: do not leak kobjects
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 24 May 2017 00:07:44 +0000 (17:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:37:16 +0000 (15:37 +0200)
commitf10a605136f9c75c209bf537308f146a971da5d5
treeec52f22a5a86985220b05afd12cb0701d31cd3ce
parent3e95fc667cfa080c6b68cb731155e7cc5fda6494
firmware: vpd: do not leak kobjects

kobject_del() only unlinks kobject, we need to use kobject_put() to
make sure kobject will go away completely.

Fixes: cd796c7e3fb1 ("firmware: Google VPD sysfs driver")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/google/vpd.c