On Thu, 27 Oct 2022 17:19:18 +0800, Yang Yingliang wrote: > If device_register() returns error in rbd_sysfs_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(). > > [...] Applied, thanks! [1/1] rbd: fix possible memory leak in rbd_sysfs_init() (no commit info) Best regards, -- Jens Axboe