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 7aefa62 commit f2f2b3bCopy full SHA for f2f2b3b
drivers/infiniband/core/device.c
@@ -896,7 +896,9 @@ static int add_one_compat_dev(struct ib_device *device,
896
cdev->dev.parent = device->dev.parent;
897
rdma_init_coredev(cdev, device, read_pnet(&rnet->net));
898
cdev->dev.release = compatdev_release;
899
- dev_set_name(&cdev->dev, "%s", dev_name(&device->dev));
+ ret = dev_set_name(&cdev->dev, "%s", dev_name(&device->dev));
900
+ if (ret)
901
+ goto add_err;
902
903
ret = device_add(&cdev->dev);
904
if (ret)
0 commit comments