1a98e4ef32
[ Upstream commit aa8ba13cae3134b8ef1c1b6879f66372531da738 ]
kobject_init_and_add() takes reference even when it fails.
If this function returns an error, kobject_put() must be called to
properly clean up the memory associated with the object. Thus,
replace kfree() by kobject_put() to fix this issue. Previous
commit "b8eb718348b8" fixed a similar problem.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mdev_core.c | ||
mdev_driver.c | ||
mdev_private.h | ||
mdev_sysfs.c | ||
vfio_mdev.c |