In the Linux kernel, the following vulnerability has been resolved: powerpc/pseries: fix possible memory leak in ibmebus_bus_init() If device_register() returns error in ibmebus_bus_init(), name of kobject which is allocated in dev_set_name() called in device_add() is leaked. As comment of device_add() says, it should call put_device() to drop the reference count that was set in device_initialize() when it fails, so the name can be freed in kobject_cleanup().
https://git.kernel.org/stable/c/ebd8dc974fcc59e2851a0d89ee7935b55142dc8e
https://git.kernel.org/stable/c/e4ff88548defafb1ef84facd9856ec252da7b008
https://git.kernel.org/stable/c/d35e7ae10eb8917883da2a0b1823c620a1be42d6
https://git.kernel.org/stable/c/afda85b963c12947e298ad85d757e333aa40fd74
https://git.kernel.org/stable/c/9f3b2b666833ebef6d0ce5a40e189f38e70342a1
https://git.kernel.org/stable/c/96f27ff732208dce6468016e7a7d5032bd1bfc23
https://git.kernel.org/stable/c/7ffe14fce7425c32e735bdc44bce425f18976a49
https://git.kernel.org/stable/c/3cc4c2f6c266fe5b33a7fa797f31e8b3f06ce58c