We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7452a7 commit e2853c4Copy full SHA for e2853c4
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c
@@ -183,6 +183,7 @@ static int rtrs_srv_create_once_sysfs_root_folders(struct rtrs_srv_sess *sess)
183
err = -ENOMEM;
184
pr_err("kobject_create_and_add(): %d\n", err);
185
device_del(&srv->dev);
186
+ put_device(&srv->dev);
187
goto unlock;
188
}
189
dev_set_uevent_suppress(&srv->dev, false);
@@ -208,6 +209,7 @@ rtrs_srv_destroy_once_sysfs_root_folders(struct rtrs_srv_sess *sess)
208
209
kobject_put(srv->kobj_paths);
210
mutex_unlock(&srv->paths_mutex);
211
212
213
} else {
214
215
0 commit comments