Merge tag 'driver-core-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / hsi / hsi_core.c
index ec90713..8840661 100644 (file)
@@ -102,6 +102,7 @@ struct hsi_client *hsi_new_client(struct hsi_port *port,
        if (device_register(&cl->device) < 0) {
                pr_err("hsi: failed to register client: %s\n", info->name);
                put_device(&cl->device);
+               goto err;
        }
 
        return cl;