mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
aa8ba13cae
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 |